fix: nav slash, back button context, home page max-width
- Past Trips nav link: add missing / (base_url_absolute has no trailing slash) - Entry back link: history.back() with journal fallback, label → "← Back" - Home page: max-width 1400px instead of none — narrows layout on wide screens Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RB86BaJBG3eGiMdfhmHRrQ
This commit is contained in:
@@ -651,7 +651,7 @@ body::after {
|
|||||||
|
|
||||||
/* ── Home page layout ────────────────────────────────────────────────────────── */
|
/* ── Home page layout ────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
.home-page .site-main { max-width: none; padding: 0; }
|
.home-page .site-main { max-width: 1400px; margin: 0 auto; padding: 0; }
|
||||||
|
|
||||||
.home-layout {
|
.home-layout {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
<a href="{{ page.parent().url }}">← Back to journal</a>
|
<a href="{{ page.parent().url }}" onclick="if(history.length>1){event.preventDefault();history.back()}">← Back</a>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
{% block nav %}
|
{% block nav %}
|
||||||
<nav class="site-nav" aria-label="Main navigation">
|
<nav class="site-nav" aria-label="Main navigation">
|
||||||
<a href="{{ base_url_absolute }}"{% if page.template == 'home' %} aria-current="page"{% endif %}>Home</a>
|
<a href="{{ base_url_absolute }}"{% if page.template == 'home' %} aria-current="page"{% endif %}>Home</a>
|
||||||
<a href="{{ base_url_absolute }}trips"{% if page.template == 'trips' %} aria-current="page"{% endif %}>Past Trips</a>
|
<a href="{{ base_url_absolute }}/trips"{% if page.template == 'trips' %} aria-current="page"{% endif %}>Past Trips</a>
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user