Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spookey/slick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrieder Griesshammer <frieder.griesshammer@der-beweis.de>2022-09-01 16:01:37 +0300
committerFrieder Griesshammer <frieder.griesshammer@der-beweis.de>2022-09-01 16:01:54 +0300
commit248636d4b8c36b73c20c06089da763f202c019be (patch)
treee491aba78cb6d9b2581ba95e677ca6084194c717
parenta6e8a7fa504f777f930e36826a8c2a4335ebcf26 (diff)
parent69854a59a4be0386ac7bc20ae8b67901df957e59 (diff)
Merge branch 'hide-rss' (Add setting to show/hide RSS link in the footer)
-rw-r--r--CHANGELOG.md3
-rw-r--r--_sites/changelog/config.yaml3
-rw-r--r--_sites/example/config.toml3
-rw-r--r--layouts/partials/footer.html2
4 files changed, 10 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e3e8a7..4e019ae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,9 @@ and this project adheres to
### Added
- `integrity` property to script tags.
+- Introduced `showRssLink` setting to control display of RSS link
+ in the footer.
+ Thanks [@ivan3bx](https://github.com/ivan3bx) for the idea.
## [v0.3.9] - 2022-01-29
diff --git a/_sites/changelog/config.yaml b/_sites/changelog/config.yaml
index b85b1ee..4ab17e0 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 false the RSS link in footer is not shown
+ showRssLink: false
+
# 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..3d8577a 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 false the RSS link in footer is not shown
+ 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>