diff options
author | ivan <moscoso@gmail.com> | 2021-08-06 07:23:58 +0300 |
---|---|---|
committer | ivan <moscoso@gmail.com> | 2021-08-06 07:32:58 +0300 |
commit | c06a0332dbef372f3b57de9b2164d042b79d705f (patch) | |
tree | 9ec8c2ac6bccdad536331fa61fce94f62260f3ee | |
parent | ae416308ba1bf181345bbe2ad2f950045a7055d6 (diff) |
Allow hiding the RSS link in the footer
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | _sites/changelog/config.yaml | 3 | ||||
-rw-r--r-- | _sites/example/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
4 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d115e7..dc49d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to ## [Unreleased] -- +- Added setting ``showRssLink`` to allow hiding the RSS link in the footer. + ## [v0.3.6] diff --git a/_sites/changelog/config.yaml b/_sites/changelog/config.yaml index b85b1ee..93cc57c 100644 --- a/_sites/changelog/config.yaml +++ b/_sites/changelog/config.yaml @@ -57,6 +57,9 @@ params: # otherwise your visitors will get confused and lost...) showNavHeader: true + # If true, hides RSS link in footer + showRssLink: true + # Decide if only summaries are shown on the main page or the full content showFullContent: true diff --git a/_sites/example/config.toml b/_sites/example/config.toml index a1a3796..d7e86d1 100644 --- a/_sites/example/config.toml +++ b/_sites/example/config.toml @@ -57,6 +57,9 @@ paginatePath = "page" # otherwise your visitors will get confused and lost...) showNavHeader = true + # If true, hide RSS link in footer + showRssLink = true + # Decide if only summaries are shown on the main page or the full content showFullContent = true diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 326b098..faa8f7f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -10,7 +10,7 @@ {{- end }} </li> {{- end }} - {{- with .Site.Home.OutputFormats.Get "RSS" }} + {{- with and (default true .Site.Params.showRssLink) (.Site.Home.OutputFormats.Get "RSS") }} <li class="pure-menu-item" title="RSS Feed"> <a href="{{ .RelPermalink }}" class="pure-menu-link">RSS</a> </li> |