diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 01:42:31 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 01:42:31 +0300 |
commit | 10ff471ca02e78fb8641e76ffb1cb8387d540125 (patch) | |
tree | 4898d3427ab624d2c479a5e0a0574ce954ff0791 /layouts | |
parent | 739dacf6d4061ad1960423f2844b5319114741a3 (diff) |
Auto-commit 2024-12-11
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" . }} |