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
parentc9af6d63c3d7173197574b000b7578f15dea713b (diff)
Add a setting to use text instead of the RSS icon
-rw-r--r--README.md4
-rw-r--r--layouts/partials/navigation.html11
-rw-r--r--sample-config.toml4
3 files changed, 15 insertions, 4 deletions
diff --git a/README.md b/README.md
index f4777f0..9bee7d7 100644
--- a/README.md
+++ b/README.md
@@ -100,6 +100,10 @@ post = "/blog/:year-:month-:day-:title/"
# switch to true to enable RSS icon link in the navigation menu
rss = true
+ # set to true to use a text label for RSS instead of an icon
+ # this is overwritten by the `rss` setting
+ textrss = false
+
# Website's default description used in meta tags
defaultDescription = ""
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>
diff --git a/sample-config.toml b/sample-config.toml
index 7a7e31f..d3c8f96 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -121,6 +121,10 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
rss = true # switch to true to enable RSS icon link
+ # set to true to use a text label for RSS instead of an icon
+ # this is overwritten by the `rss` setting
+ textrss = false
+
defaultDescription = ""
# populate this with your own keywords