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" logo = "img/avatar-icon.png"
favicon = "img/favicon.ico" favicon = "img/favicon.ico"
commit = false commit = false
rss = true
[Author] [Author]
name = "Some Person" name = "Some Person"

View File

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