aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-pt2021/layouts')
-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 -}}