From ec6483ac244ef41eb490d978c58adec6eabe4109 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Wed, 22 Jul 2015 16:43:20 +0200 Subject: [PATCH] Make RSS feed optional --- exampleSite/config.toml | 1 + layouts/partials/nav.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1f13d5e..b40755d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,6 +12,7 @@ theme = "hugo-cactus-theme" twitter = "Your Twitter account" # Disable comments by leaving disqusShortname empty disqusShortname = "spf13" + enableRSS = true # The variables below are optionally too and can be used to # translate or customize each string of the theme. diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3e2004a..b70a033 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -8,5 +8,7 @@ {{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }} {{ end }} + {{ if .Site.Params.enableRSS }} {{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }} + {{ end }} \ No newline at end of file