diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-23 17:01:52 +0300 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-23 17:01:52 +0300 |
| commit | fc07b509fe2da1e9baeb67869bc2fb3992990de4 (patch) | |
| tree | 15fafad11e13d8132729281994c2dba9eef716c9 /layouts/partials/head.html | |
| parent | bffd956eee9a06c7531b8810b10f0cc4425929fd (diff) | |
| download | gohugo-theme-ed-fc07b509fe2da1e9baeb67869bc2fb3992990de4.tar.gz | |
Rework alternate links, add sitemap support
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3ef34e2..81dd2d0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,12 +17,10 @@ <link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | relURL }}" sizes="any"><!-- 32×32 --> <link rel="icon" href="{{ site.Params.assets.svgicon | default "icon.svg" | relURL }}" type="image/svg+xml"> <link rel="apple-touch-icon" href="{{ site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | relURL }}"><!-- 180×180 --> - <link rel="manifest" href="{{ "manifest.webmanifest" | relURL }}"> - {{- /* RSS */}} - {{ range .AlternativeOutputFormats }} - <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" title="{{ $.Site.Title }}" href="{{ .Permalink | safeURL }}"> - {{- end -}} + {{- /* Feed, sitemap and manifest */}} + {{ partial "alternate-outputs.html" . }} + {{- range .AllTranslations -}} <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> {{ end -}} |
