diff --git a/themes/intotheeast/templates/partials/base.html.twig b/themes/intotheeast/templates/partials/base.html.twig index 7cc3a30..ba860f4 100644 --- a/themes/intotheeast/templates/partials/base.html.twig +++ b/themes/intotheeast/templates/partials/base.html.twig @@ -12,7 +12,7 @@ {{ assets.css()|raw }} {{ assets.js()|raw }} -
+- {{ page.header.date_start|date('d M Y') }} - {% if page.header.date_end %} — {{ page.header.date_end|date('d M Y') }}{% endif %} -
+{% set gpx_urls = [] %} +{% for name, media in page.media.all %} + {% if name|split('.')|last == 'gpx' %} + {% set gpx_urls = gpx_urls|merge([page.url ~ '/' ~ name]) %} {% endif %} -- {{ journal_count }} journal {{ journal_count == 1 ? 'entry' : 'entries' }} - {% if story_count > 0 %} · {{ story_count }} {{ story_count == 1 ? 'story' : 'stories' }}{% endif %} -
-+ {{ page.header.date_start|date('d M Y') }} + {% if page.header.date_end %} — {{ page.header.date_end|date('d M Y') }}{% else %} — Ongoing{% endif %} +
+ {% endif %} + + {{ journal_count }} journal {{ journal_count == 1 ? 'entry' : 'entries' }} + {% if story_count > 0 %} · {{ story_count }} {{ story_count == 1 ? 'story' : 'stories' }}{% endif %} + + +