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 Steffen Illium
parent cfbe73b66c
commit dda0664da2

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].contact_label %}
@@ -20,5 +24,6 @@
</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>