diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 11 | ||||
-rw-r--r-- | sample-config.toml | 4 |
3 files changed, 15 insertions, 4 deletions
@@ -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 |