From 9b35ed1a75f062e1353a6a929d8455901ae46d82 Mon Sep 17 00:00:00 2001
From: Iulian Onofrei <5748627+revolter@users.noreply.github.com>
Date: Tue, 14 May 2024 21:25:44 +0300
Subject: [PATCH 1/3] Hide the feeds part from the footer if the file is
missing
---
_includes/footer.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/_includes/footer.html b/_includes/footer.html
index f81886ff94..e1298e7e65 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -5,13 +5,17 @@
From d4625aab3ed2d2232b9b10574d0e9090575c8d30 Mon Sep 17 00:00:00 2001
From: Iulian Onofrei <5748627+revolter@users.noreply.github.com>
Date: Tue, 14 May 2024 21:25:50 +0300
Subject: [PATCH 3/3] Add possibility to hide parts from the footer
---
README.md | 7 +++++++
_config.yml | 13 ++++++++-----
_includes/footer.html | 6 +++---
3 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 32be2774ab..4e7f3fd245 100644
--- a/README.md
+++ b/README.md
@@ -344,6 +344,13 @@ For example, to render a link to an account of user `john.doe` at platform `devi
- The `user_url` is rendered as given without handling any special characters within.
+### Hiding parts from the footer
+
+- You can hide the feed part from the footer by setting `site.minima.hide_feed_from_footer` to `true` in `_config.yml`.
+- You can hide the author part from the footer by setting `site.minima.hide_author_from_footer` to `true` in `_config.yml`.
+- You can hide the description part from the footer by setting `site.minima.hide_description_from_footer` to `true` in `_config.yml`.
+
+
### Enabling Google Analytics
To enable Google Analytics, add the following lines to your Jekyll site:
diff --git a/_config.yml b/_config.yml
index 3a8172e60a..4e5b15b730 100644
--- a/_config.yml
+++ b/_config.yml
@@ -15,8 +15,8 @@ description: >
# If you clone the Minima repo and build locally, use this setting.
theme: minima
-# As of November 2023, GitHub Pages still uses Minima 2.5.1 (https://pages.github.com/versions/).
-# If you want to use the latest Minima version on GitHub Pages, use the following setting and
+# As of November 2023, GitHub Pages still uses Minima 2.5.1 (https://pages.github.com/versions/).
+# If you want to use the latest Minima version on GitHub Pages, use the following setting and
# add a line comment on "theme: minima" above.
#remote_theme: jekyll/minima
@@ -45,9 +45,9 @@ minima:
# solarized-dark Dark variant of solarized color scheme.
# solarized Adaptive skin for solarized color scheme skins.
skin: classic
-
+
# Minima date format.
- # The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
+ # The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"
@@ -71,4 +71,7 @@ minima:
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
-
+ # Hide parts from footer.
+ # hide_feed_from_footer: true
+ # hide_author_from_footer: true
+ # hide_description_from_footer: true
diff --git a/_includes/footer.html b/_includes/footer.html
index 1eb8bc01da..82555c2d66 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -7,7 +7,7 @@
- {%- if site.description %}
+ {%- if site.description and site.minima.hide_description_from_footer != true %}