Skip to content

Commit 4b95ba7

Browse files
authored
Add automatic discovery for Atom feeds so it's easier to subscribe to new content on the site (#120)
Thank you 👍
2 parents 034829a + 9e052e1 commit 4b95ba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layouts/partials/docs/head.html

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
{{ block "favicon" . }}{{ partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "head/favicon.html") . }}{{ end }}
3333
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "head/opengraph") . }}
3434
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "head/twitter_cards") . }}
35+
<!-- Atom feed autodiscovery -->
36+
{{- with .Site.Title }}
37+
<link rel="alternate" type="application/atom+xml" title="Atom feed for {{ . }}" href="/index.xml" />
38+
{{- end }}
3539
<!-- Dark Mode -->
3640
{{ if eq .Site.Params.docs.darkMode true -}}
3741
{{ $darkModeInit := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/darkmode-init.js") | js.Build | minify -}}

0 commit comments

Comments
 (0)