From 43423bbd2a5a5fd6ab8556cdbd44cfea2d9b5983 Mon Sep 17 00:00:00 2001
From: Paul Duncan <pabs@pablotron.org>
Date: Sat, 16 Oct 2021 21:56:56 -0400
Subject: themes/hugo-pt2021/layouts/projects/single.html: link to git repo

---
 themes/hugo-pt2021/layouts/projects/single.html | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

(limited to 'themes/hugo-pt2021')

diff --git a/themes/hugo-pt2021/layouts/projects/single.html b/themes/hugo-pt2021/layouts/projects/single.html
index 769fc33..5ea439a 100644
--- a/themes/hugo-pt2021/layouts/projects/single.html
+++ b/themes/hugo-pt2021/layouts/projects/single.html
@@ -5,9 +5,26 @@
 {{- define "main" -}}
   <div class='container'>
     <div class='section is-small'>
-      <h1 class='title' title='{{.Title}}' aria-label='{{.Title}}'>
+      <h1
+        class='title'
+        title='{{.Title}}'
+        aria-label='{{.Title}}'
+      >
         {{- .Title -}}
-      </h1>
+      </h1><!-- title -->
+
+      {{- if .Params.repo -}}
+        <h3 class='subtitle'>
+          <a
+            href='{{- .Params.repo -}}'
+            title='Go to {{.Slug}} Git repository.'
+            aria-label='Go to {{.Slug}} Git repository'
+            rel='noopener'
+          >
+            Git Repository
+          </a>
+        </h3><!-- subtitle -->
+      {{- end -}}
 
       <div class='content'>
         {{- .Content -}}
-- 
cgit v1.2.3