diff options
author | Frieder Griesshammer <frieder.griesshammer@der-beweis.de> | 2022-09-01 15:48:10 +0300 |
---|---|---|
committer | Frieder Griesshammer <frieder.griesshammer@der-beweis.de> | 2022-09-01 15:48:10 +0300 |
commit | 34a9763db996e7ffd7739ee84a5e835459c63f4d (patch) | |
tree | b711443b9a669c69beea74a85c7239a11fbeff18 | |
parent | a6e8a7fa504f777f930e36826a8c2a4335ebcf26 (diff) | |
parent | c06a0332dbef372f3b57de9b2164d042b79d705f (diff) |
Merge branch 'main' of https://github.com/ivan3bx/slick into hide-rss
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-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, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3e8a7..82f206c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to ### Added - `integrity` property to script tags. +- Added setting ``showRssLink`` to allow hiding the RSS link in the footer. ## [v0.3.9] - 2022-01-29 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> |