feat: add fixed top and footer back pills to entry page
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user