diff options
author | Dylan Thomas <dylan.thomas@gmail.com> | 2020-09-21 19:36:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 19:36:29 +0300 |
commit | 60d9c5d7d6b72202031ac2cf27527742e93f0e3e (patch) | |
tree | 5d32e99b8308334471cdb3bcc07111d9bd145c6d | |
parent | b90998ee43b058c081c615a59647f73c536127bf (diff) |
make rss icon display configurable (#83)
-rw-r--r-- | exampleSite/config.yml | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 658b49d..8fcfc34 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -49,6 +49,7 @@ params: email: XXX@example.com opengraph: true shareTwitter: true + rss: true shareFacebook: true shareGooglePlus: true shareLinkedIn: false diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fc00b7a..6db2e65 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -38,7 +38,9 @@ <a title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> </h1> {{ end }} - <a class="button-square" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss"></i></a> + {{ if .Site.Params.rss }} + <a class="button-square" href="{{ .Site.BaseURL }}index.xml"><i class="fa fa-rss"></i></a> + {{ end }} {{ with .Site.Params.twitter }} <a class="button-square button-social hint--top" data-hint="Twitter" title="Twitter" href="{{ . }}" rel="me"> <i class="fa fa-twitter"></i> |