aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'/>