From ce14da4350c586c7d184326f0326a14d60818645 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Mon, 6 Aug 2018 10:47:22 -0400 Subject: [PATCH] Fix the AlternativeOutputFormats/OutputFormats examples Ref: https://github.com/gohugoio/hugo/pull/4925#issuecomment-403940096, https://github.com/gohugoio/hugo/issues/5032 Also fix https://gohugo.io/templates/rss/ returning 404. --- content/en/templates/rss.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/en/templates/rss.md b/content/en/templates/rss.md index 834cb1277..715bc2a48 100644 --- a/content/en/templates/rss.md +++ b/content/en/templates/rss.md @@ -14,7 +14,6 @@ menu: weight: 150 sections_weight: 150 draft: false -aliases: [/templates/rss/] toc: true --- @@ -100,7 +99,7 @@ In your `header.html` template, you can specify your RSS feed in your `` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} ``` @@ -108,7 +107,7 @@ If you only want the RSS link, you can query the formats: ```go-html-template {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} ```