From 460f1bba143fcf7b165eb95eb9f8878426d186f3 Mon Sep 17 00:00:00 2001 From: Tixie Date: Mon, 23 Dec 2019 08:41:17 +0100 Subject: [PATCH] fix(RSS): Add link to feed on single pages --- layouts/_default/baseof.html | 9 +++++---- layouts/partials/header.html | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 237e869..84cb6e4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -34,16 +34,17 @@ {{ end }} - {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} + {{ with .Site.GetPage "/" }} + {{ with .OutputFormats.Get "rss" }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end }} + {{ end }} {{ $sass := resources.Get "/scss/style.scss" }} {{ $style := $sass | resources.ToCSS | minify | fingerprint }} {{ $secureStyle := $style | resources.Fingerprint "sha512" }} - {{ partial "header" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 62b6111..2df4246 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,8 +12,10 @@