Ability to toggle RSS

Ability to toggle RSS feed by setting .Site.Params.rss (defined in
config.toml in the [Params] section)
This commit is contained in:
Michael Romero 2017-03-06 10:59:07 -08:00
parent f4ce4ee357
commit 50fad43b1f
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ pygmentCodeFences = true
logo = "img/avatar-icon.png"
favicon = "img/favicon.ico"
commit = false
rss = true
[Author]
name = "Some Person"

View File

@ -163,7 +163,7 @@
</a>
</li>
{{ end }}
{{ if .Site.Params.rss }}
<li>
<a href="{{ .Site.BaseURL}}index.xml" title="RSS">
<span class="fa-stack fa-lg">
@ -172,7 +172,7 @@
</span>
</a>
</li>
{{ end }}
</ul>
<p class="credits copyright text-muted">
{{ .Site.Author.name }}