From 929d2d976a9a62d3fe62eecce8b04dfbb9242465 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 9 Nov 2016 15:39:23 +0200 Subject: [PATCH] layouts/_default/baseof.html: Improve handling of RSS We are explicitly using the site's RSS feed, but after reading the Hugo RSS docs I think it's better if we use the contextual version of the RSSlink. This will make the RSS plumbing show a feed for the current category, tag, section, etc. The example code also adds a bit of markup to help browsers find the content more easily. See: https://gohugo.io/templates/rss/ --- layouts/_default/baseof.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cdd77d0..22c7e88 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,8 +12,11 @@ {{ "" | safeHTML }} - {{ "" | safeHTML }} - + {{ if .RSSlink }} + {{ "" | safeHTML }} + + + {{ end }} {{ template "_internal/google_analytics_async.html" . }}