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:
parent
36271d15f5
commit
30c69ad7fc
@ -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)
|
||||
|
||||
|
@ -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">© {{ 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> & <a href="https://mademistakes.com/work/jekyll-themes/minimal-mistakes/" rel="nofollow">Minimal Mistakes</a>.</div>
|
||||
|
Loading…
Reference in New Issue
Block a user