Browse Source

Make RSS feed optional

master
digitalcraftsman 9 years ago
parent
commit
ec6483ac24
  1. 1
      exampleSite/config.toml
  2. 2
      layouts/partials/nav.html

1
exampleSite/config.toml

@ -12,6 +12,7 @@ theme = "hugo-cactus-theme"
twitter = "Your Twitter account" twitter = "Your Twitter account"
# Disable comments by leaving disqusShortname empty # Disable comments by leaving disqusShortname empty
disqusShortname = "spf13" disqusShortname = "spf13"
enableRSS = true
# The variables below are optionally too and can be used to # The variables below are optionally too and can be used to
# translate or customize each string of the theme. # translate or customize each string of the theme.

2
layouts/partials/nav.html

@ -8,5 +8,7 @@
<a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a> <a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ end }} {{ end }}
{{ if .Site.Params.enableRSS }}
<a class="cta" href="{{ .Site.BaseURL }}index.xml">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a> <a class="cta" href="{{ .Site.BaseURL }}index.xml">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
{{ end }}
</nav> </nav>
Loading…
Cancel
Save