fix(story): add end_date blueprint field; fix date range display

Blueprint: renamed 'Date' to 'Start Date', added optional 'End Date'
field (header.end_date) so it's editable in Admin.

Template: single date → 'd M Y'; range → 'd M Y – d M Y' (full year
on both sides — the old format silently dropped the start year).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
2026-06-20 11:45:38 +02:00
parent 46c8a76633
commit bc67a0ee88
2 changed files with 8 additions and 3 deletions
+1 -2
View File
@@ -13,8 +13,7 @@
{% set date_str = page.date|date('d M Y') %}
{% if page.header.end_date %}
{% set end_str = page.header.end_date|date('d M Y') %}
{% set date_str = page.date|date('d M') ~ '' ~ end_str %}
{% set date_str = page.date|date('d M Y') ~ ' ' ~ page.header.end_date|date('d M Y') %}
{% endif %}
{% set location = page.header.location_name ?? '' %}