aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-07-13 01:08:02 -0400
committerPaul Duncan <pabs@pablotron.org>2022-07-13 01:08:02 -0400
commit3c9bae7652eb92ea7c7a0da27afebc085f1844fe (patch)
tree47a8f97d1b13f3240f08b0c108238bdc038485c3 /themes/hugo-pt2021
parentd977bcb2e52e1f397480d232f34e1e9bb6decf5b (diff)
downloadpablotron.org-3c9bae7652eb92ea7c7a0da27afebc085f1844fe.tar.bz2
pablotron.org-3c9bae7652eb92ea7c7a0da27afebc085f1844fe.zip
themes/hugo-pt2021/layouts/partials/head.html: add support for go-import
Diffstat (limited to 'themes/hugo-pt2021')
-rw-r--r--themes/hugo-pt2021/layouts/partials/head.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html
index 09da4ff..56e7887 100644
--- a/themes/hugo-pt2021/layouts/partials/head.html
+++ b/themes/hugo-pt2021/layouts/partials/head.html
@@ -1,6 +1,15 @@
<head>
<meta charset='utf-8'/>
+ {{/* add go-import meta tag */}}
+ {{/* ref: https://go.dev/ref/mod#vcs-find */}}
+ {{- if .Page.Params.go_import -}}
+ <meta
+ name='go-import'
+ content='{{- .Page.Params.go_import -}}'
+ />
+ {{- end -}}
+
{{/* set responsive viewport */}}
<meta name='viewport' content='width=device-width, initial-scale=1'/>