diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0e445ee..5179dc3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,13 +1,13 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> +{{if .Params.gomod}} +<meta name="go-import" content="{{.site.baseModURL}}/go/{{ .Params.Name }} {{ .Package.VCS }} {{ .Params.Repository }}"> +<meta name="go-source" content="{{.site.baseModURL}}/{{ .Params.Name }} {{ .Params.Repository }} {{ .Params.Repository }}/tree/{/dir} {{ .Params.Repository }}/tree/master{/dir}/{file}#n{line}"> +{{end}} <link rel="icon" type="image/png" href="/favicon.png"> <link rel="authorization_endpoint" href="https://indieauth.com/auth"> <link rel="token_endpoint" href="https://tokens.indieauth.com/token"> <link rel="micropub" href="https://neonxp.ru/micropub"> -{{if .Params.gomod}} -<meta name="go-import" content="neonxp.ru/go/{{.Params.Name}} git {{.Params.Repository}}"> -<meta name="go-source" content="neonxp.ru/go/{{.Params.Name}} {{.Params.Repository}}/tree/"> -{{end}} <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} |