From 46cafdbaca13866f32db04c0cc28374e30ec5914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 14 Oct 2019 09:30:09 +0200 Subject: [PATCH] examples: Replace .RSSLink Fixes #6037 --- examples/blog/layouts/partials/header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index 24500a483..5863e59ec 100644 --- a/examples/blog/layouts/partials/header.html +++ b/examples/blog/layouts/partials/header.html @@ -6,5 +6,7 @@ {{ .Title }} - {{ .Site.BaseURL }} {{ partial "header.includes.html" . }} - {{ if .RSSLink }}{{ end }} + {{ with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType .Title | safeHTML }} + {{- end }}