Skip to content

Commit 30c69ad

Browse files
PanderMusubiiBug
andauthored
Hide page__footer-follow if there are no links nor atom feed. (#5279)
Co-authored-by: iBug <git@ibugone.com>
1 parent 36271d1 commit 30c69ad

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

3-
- Add HTML escaping for some titles, labels and metada that was missing.
3+
## Unreleased
4+
5+
### Enhancements
6+
7+
- Hide page__footer-follow if there are no links nor atom feed. (#5279)
8+
- Add HTML escaping for some titles, labels and metada that was missing. (#5276)
49

510
## [4.27.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.1)
611

_includes/footer.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{% unless site.atom_feed.hide %}
2+
{% assign show_atom = true %}
3+
{% endunless %}
4+
{% if site.footer.links or show_atom %}
15
<div class="page__footer-follow">
26
<ul class="social-icons">
37
{% if site.data.ui-text[site.locale].follow_label %}
@@ -17,5 +21,6 @@
1721
{% endunless %}
1822
</ul>
1923
</div>
24+
{% endif %}
2025

2126
<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} <a href="{{ site.copyright_url | default: site.url }}">{{ site.copyright | default: site.title | escape_once | strip }}</a>. {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://mademistakes.com/work/jekyll-themes/minimal-mistakes/" rel="nofollow">Minimal Mistakes</a>.</div>

0 commit comments

Comments
 (0)