Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDionysis Grigoropoulos <dgrig@erethon.com>2016-07-05 22:44:13 +0300
committerDionysis Grigoropoulos <dgrig@erethon.com>2016-07-05 23:19:24 +0300
commite4f348d4490885a1a1fb2d56c0730801e54e9f5c (patch)
tree6306ac7dae0b8eb37de1a969f3cbdd2a75a1e52d /layouts/partials/navigation.html
parentc9af6d63c3d7173197574b000b7578f15dea713b (diff)
Add a setting to use text instead of the RSS icon
Diffstat (limited to 'layouts/partials/navigation.html')
-rw-r--r--layouts/partials/navigation.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
index a846ac8..2158654 100644
--- a/layouts/partials/navigation.html
+++ b/layouts/partials/navigation.html
@@ -13,10 +13,13 @@
<!-- http://fontawesome.io icon fa-lg adapts it to size (at least it is supposed to) -->
<ul class="subscription">
- {{ if .Site.Params.rss }}<a href="{{ "/index.xml" | absURL }}" target="_blank" type="application/rss+xml" title="RSS"><i class="fa fa-rss-square fa-lg"></i></a>{{ end }}
-
- <!-- If you prefer RSS text (like Octopress) replace the line above with next comment -->
- <!-- <li><a href="/index.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li> -->
+ {{ if or .Site.Params.rss .Site.Params.textrss }}
+ {{ if .Site.Params.rss }}
+ <a href="{{ "/index.xml" | absURL }}" target="_blank" type="application/rss+xml" title="RSS"><i class="fa fa-rss-square fa-lg"></i></a>
+ {{ else }}
+ <li><a href="/index.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+ {{ end }}
+ {{ end }}
</ul>