diff options
Diffstat (limited to 'themes/default/layouts/partials/base-discovery.html')
-rw-r--r-- | themes/default/layouts/partials/base-discovery.html | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/base-discovery.html b/themes/default/layouts/partials/base-discovery.html index 23d3a09..69406ef 100644 --- a/themes/default/layouts/partials/base-discovery.html +++ b/themes/default/layouts/partials/base-discovery.html @@ -7,11 +7,30 @@ {{- $author := partial "function-authors-data.html" (dict "Data" $authorData) -}} +{{- with (eq .Page.Kind "home") -}} +<link + rel="alternate" + type="application/rss+xml" + title="{{ $.Site.Title }} Feed" + href="{{ "" | absURL }}/rss.xml" +/> + + {{- range $author := $.Site.Sections }} + <link + rel="alternate" + type="application/rss+xml" + title="{{ $author.Page.Type }}'s Feed" + href="{{ print $author.Permalink "rss.xml" | absURL }}" + /> + {{ end }} +{{- end -}} + +{{- with (eq .Page.Kind "section") -}} <link rel="alternate" type="application/rss+xml" title="{{ $author.name }}'s Feed" - href="{{ .Site.BaseURL }}/{{ $author.user }}/rss.xml" + href="{{ print ("" | absURL) "/" $.Section }}/rss.xml" /> {{- with $author.feeds.rss }} @@ -29,21 +48,22 @@ /> {{ end }} {{ end }} +{{- end -}} -{{- if (eq .Page.Kind "taxonomy") -}} +{{- with (eq .Page.Kind "taxonomy") -}} <link rel="alternate" type="application/rss+xml" - title="{{ .Title }} Feed" - href="{{ .Permalink }}rss.xml" + title="{{ $.Title }} Feed" + href="{{ $.Permalink }}rss.xml" /> {{- end -}} -{{- if (eq .Page.Kind "term") -}} +{{- with (eq .Page.Kind "term") -}} <link rel="alternate" type="application/rss+xml" - title="#{{ lower .Title }} Tag Feed" - href="{{ .Permalink }}rss.xml" + title="#{{ lower $.Title }} Tag Feed" + href="{{ $.Permalink }}rss.xml" /> {{- end }} |