diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-07-13 01:08:02 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-07-13 01:08:02 -0400 |
commit | 3c9bae7652eb92ea7c7a0da27afebc085f1844fe (patch) | |
tree | 47a8f97d1b13f3240f08b0c108238bdc038485c3 /themes/hugo-pt2021/layouts/partials/head.html | |
parent | d977bcb2e52e1f397480d232f34e1e9bb6decf5b (diff) | |
download | pablotron.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/layouts/partials/head.html')
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/head.html | 9 |
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'/> |