feat: add fixed top and footer back pills to entry page

This commit is contained in:
2026-06-20 12:31:09 +02:00
parent 26182ec363
commit ca920a9fe8
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -14,6 +14,8 @@
{% set hero = page.media.images|first %}
{% endif %}
<a class="back-pill entry-back-fixed" href="{{ page.parent().url }}" onclick="if(history.length > 1){ history.back(); return false; }">← Back</a>
<article class="entry">
{% if hero %}
<div class="entry-hero">
@@ -121,7 +123,7 @@
{% endif %}
<footer class="entry-footer">
<a href="{{ page.parent().url }}" onclick="if(history.length>1){event.preventDefault();history.back()}">← Back</a>
<a class="back-pill" href="{{ page.parent().url }}" onclick="if(history.length > 1){ history.back(); return false; }">← Back</a>
</footer>
</article>
{% endblock %}