From 1871755a891fb3f846adf25844ed98727f2456af Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Mon, 17 Apr 2017 13:05:36 +0000
Subject: [PATCH] add Hugo RSS Link

---
 layouts/_default/baseof.html |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 337ac7b..15dbd9b 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -19,6 +19,11 @@
 
      <link href='{{ "dist/main.css" | absURL }}' rel='stylesheet' type="text/css" />
 
+     {{ if .RSSLink }}
+      <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+      <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
+      {{ end }}
+
       {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
       {{- template "_internal/opengraph.html" . -}}
       {{- template "_internal/google_news.html" . -}}

--
Gitblit v1.10.0