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 09:45:19 +08:00
committed by GitHub
co-authored by iBug
parent 36271d15f5
commit 30c69ad7fc
2 changed files with 11 additions and 1 deletions
+5
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>