summaryrefslogtreecommitdiffstats
path: root/layouts/partials/alternate-outputs.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-23 17:01:52 +0300
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-23 17:01:52 +0300
commitfc07b509fe2da1e9baeb67869bc2fb3992990de4 (patch)
tree15fafad11e13d8132729281994c2dba9eef716c9 /layouts/partials/alternate-outputs.html
parentbffd956eee9a06c7531b8810b10f0cc4425929fd (diff)
downloadgohugo-theme-ed-fc07b509fe2da1e9baeb67869bc2fb3992990de4.tar.gz
Rework alternate links, add sitemap support
Diffstat (limited to 'layouts/partials/alternate-outputs.html')
-rw-r--r--layouts/partials/alternate-outputs.html6
1 files changed, 6 insertions, 0 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">