aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/projects/single.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-16 21:56:56 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-16 21:56:56 -0400
commit43423bbd2a5a5fd6ab8556cdbd44cfea2d9b5983 (patch)
tree35231df256e82eee7411d3b5758ac4c92e2ef4c1 /themes/hugo-pt2021/layouts/projects/single.html
parent1c96e5974eecdc1c3a16497c56dff71c2cc4c35d (diff)
downloadpablotron.org-43423bbd2a5a5fd6ab8556cdbd44cfea2d9b5983.tar.bz2
pablotron.org-43423bbd2a5a5fd6ab8556cdbd44cfea2d9b5983.zip
themes/hugo-pt2021/layouts/projects/single.html: link to git repo
Diffstat (limited to 'themes/hugo-pt2021/layouts/projects/single.html')
-rw-r--r--themes/hugo-pt2021/layouts/projects/single.html21
1 files changed, 19 insertions, 2 deletions
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 -}}