fix: use trip-relative URL for entry back-link, add active_trip sync comment
- entry.html.twig: replace hardcoded /tracker href with page.parent().url - post-form.md: add comment to keep pageconfig.parent in sync with active_trip in site.yaml
This commit is contained in:
@@ -4,6 +4,7 @@ template: post-form
|
|||||||
access:
|
access:
|
||||||
site.login: true
|
site.login: true
|
||||||
|
|
||||||
|
# Keep in sync with active_trip in user/config/site.yaml
|
||||||
pageconfig:
|
pageconfig:
|
||||||
parent: '/trips/japan-korea-2026/dailies'
|
parent: '/trips/japan-korea-2026/dailies'
|
||||||
slug_field: 'date,title'
|
slug_field: 'date,title'
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
<a href="{{ base_url_absolute }}/tracker">← Back to journal</a>
|
<a href="{{ page.parent().url }}">← Back to journal</a>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user