From 7f5a960c25415115cd7aa48a3f0e8cd31b40e691 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Mon, 10 Mar 2025 18:37:41 -0700 Subject: [PATCH] Add self links to feeds --- layouts/_default/list.atom.xml | 6 ++++++ layouts/_default/list.rss.xml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index ba69b834..ca85d1f0 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -64,6 +64,10 @@ {{ . }} {{ end }} + {{ with $page.OutputFormats.Get "atom" }} + + {{ end }} + {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} @@ -152,6 +156,8 @@ {{ . }} {{ end }} + + {{ range $subpage.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index 47dde8dc..ae9fbf40 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -40,6 +40,10 @@ + {{ with $page.OutputFormats.Get "rss" }} + + {{ end }} + {{ range $page.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }} @@ -139,6 +143,8 @@ {{ . }} {{ end }} + + {{ range $subpage.OutputFormats }} {{ $rel := cond (eq .Rel "canonical") "alternate" .Rel }}