Hide page__footer-follow if there are no links nor atom feed. (#5279)

Co-authored-by: iBug <git@ibugone.com>
This commit is contained in:
Pander 2025-07-11 03:45:19 +02:00 committed by GitHub
parent 36271d15f5
commit 30c69ad7fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# Changelog
- Add HTML escaping for some titles, labels and metada that was missing.
## Unreleased
### Enhancements
- Hide page__footer-follow if there are no links nor atom feed. (#5279)
- Add HTML escaping for some titles, labels and metada that was missing. (#5276)
## [4.27.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.1)

View File

@ -1,3 +1,7 @@
{% unless site.atom_feed.hide %}
{% assign show_atom = true %}
{% endunless %}
{% if site.footer.links or show_atom %}
<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
@ -17,5 +21,6 @@
{% endunless %}
</ul>
</div>
{% endif %}
<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>