summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/alternate-outputs.html6
-rw-r--r--layouts/partials/head.html8
2 files changed, 9 insertions, 5 deletions
diff --git a/layouts/partials/alternate-outputs.html b/layouts/partials/alternate-outputs.html
new file mode 100644
index 0000000..52bdd0d
--- /dev/null
+++ b/layouts/partials/alternate-outputs.html
@@ -0,0 +1,6 @@
+{{- range .AlternativeOutputFormats }}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .RelPermalink | safeURL }}" title="{{ .Name }}">
+{{- end }}
+ <link rel="manifest" type="application/manifest+json" href="{{ "manifest.webmanifest" | relURL }}" title="Manifest">
+ <link rel="sitemap" type="application/xml" href="{{ "sitemap.xml" | relURL }}" title="Sitemap">
+ <link rel="author" type="text/plain" href="{{ "humans.txt" | relURL }}" title="Humans">
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 -}}