From 876eab7cbf8f12a27ed826de7cb87f19720d73c0 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:22:17 -0500 Subject: [PATCH 1/8] add a "hide" value in config for atom --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index 92e645cc2546..2135c6f042e5 100644 --- a/_config.yml +++ b/_config.yml @@ -51,6 +51,7 @@ reCaptcha: secret : atom_feed: path : # blank (default) uses feed.xml + hide : # true, false (default) search : # true, false (default) search_full_content : # true, false (default) search_provider : # lunr (default), algolia, google From caba6f39a28c1eb564aa2b27a5bc61e973cc18d5 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:27:05 -0500 Subject: [PATCH 2/8] Update footer to use param --- _includes/footer.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_includes/footer.html b/_includes/footer.html index 2bc78963ce39..2a49ef0be5da 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,7 +12,9 @@ {% endfor %} {% endif %} + {% if !site.atom_feed.hide %}
  • {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}
  • + {% endif %} From ceac3fa3f8785f3419c91c57796d261d5d066e9b Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:27:12 -0500 Subject: [PATCH 3/8] update header to use param --- _includes/head.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 3b99471f5ec5..d85f703bb459 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,7 +2,10 @@ {% include seo.html %} - +{% if !site.atom_feed.hide %} + +{% endif %} @@ -31,7 +34,7 @@ {% if site.head_scripts %} - {% for script in site.head_scripts %} - - {% endfor %} -{% endif %} +{% for script in site.head_scripts %} + +{% endfor %} +{% endif %} \ No newline at end of file From 6b9997857c2a53831f0c1dbeefb783971b647396 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:27:18 -0500 Subject: [PATCH 4/8] Update docs to note configuration --- docs/_docs/05-configuration.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/_docs/05-configuration.md b/docs/_docs/05-configuration.md index 11c22a649ba4..0775250f3616 100644 --- a/docs/_docs/05-configuration.md +++ b/docs/_docs/05-configuration.md @@ -559,6 +559,15 @@ atom_feed: **Note:** By default the site feed is linked in two locations: inside the [`` element](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/head.html) and at the bottom of every page in the [site footer](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/footer.html). {: .notice--info} +### Disable Feed Icons + +By default the theme links to `feed.xml` generated in the root of your site by the **jekyll-feed** plugin. To remove the RSS icon in the header and footer, update `atom_feed` in `_config.yml` like so: + +```yaml +atom_feed: + hide: true +``` + ### Site search To enable site-wide search add `search: true` to your `_config.yml`. From ab16dfa772aa417a304ac260c2a38c8d07715024 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:38:46 -0500 Subject: [PATCH 5/8] undo formatting --- _includes/head.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index d85f703bb459..a3a2babaaaae 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -34,7 +34,7 @@ {% if site.head_scripts %} -{% for script in site.head_scripts %} - -{% endfor %} + {% for script in site.head_scripts %} + + {% endfor %} {% endif %} \ No newline at end of file From cf594d94d7ffb427ae475dfd4c97e9351ecb8606 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:40:08 -0500 Subject: [PATCH 6/8] use unless syntax --- _includes/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index a3a2babaaaae..829fb581d114 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,10 +2,10 @@ {% include seo.html %} -{% if !site.atom_feed.hide %} +{% unless site.atom_feed.hide %} -{% endif %} +{% endunless %} From 78d2b783785af9386c6ddbf7f83a95ae5b240e2b Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:40:48 -0500 Subject: [PATCH 7/8] unless syntax and indentation --- _includes/footer.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 2a49ef0be5da..2b53a253ee93 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,9 +12,9 @@ {% endfor %} {% endif %} - {% if !site.atom_feed.hide %} -
  • {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}
  • - {% endif %} + {% unless site.atom_feed.hide %} +
  • {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}
  • + {% endunless %} From fe77361593d3bc23d961eb9187019b7221db5675 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sat, 16 Jan 2021 12:41:51 -0500 Subject: [PATCH 8/8] indentation --- _includes/head.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 829fb581d114..4f1ebedb88e6 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,8 +3,7 @@ {% include seo.html %} {% unless site.atom_feed.hide %} - + {% endunless %}