diff --git a/templates/_types/page_summary/_card.html b/templates/_types/page_summary/_card.html index 28f6f15..18aa306 100644 --- a/templates/_types/page_summary/_card.html +++ b/templates/_types/page_summary/_card.html @@ -4,7 +4,8 @@ {# Left: event info #}
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - + {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %} +

{{ entry.name }}

diff --git a/templates/_types/page_summary/_card_tile.html b/templates/_types/page_summary/_card_tile.html index 935c546..008faa8 100644 --- a/templates/_types/page_summary/_card_tile.html +++ b/templates/_types/page_summary/_card_tile.html @@ -1,29 +1,30 @@ {# Tile card for page summary — compact event tile #}
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - -
+ {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %} +
+

{{ entry.name }}

+
- {% if entry.calendar_name %} - - {{ entry.calendar_name }} - - {% endif %} + {% if entry.calendar_name %} + + {{ entry.calendar_name }} + + {% endif %} -
- {{ entry.start_at.strftime('%a %-d %b') }} - · - {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
- - {% if entry.cost %} -
- £{{ '%.2f'|format(entry.cost) }} -
- {% endif %} +
+ {{ entry.start_at.strftime('%a %-d %b') }} + · + {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
- + + {% if entry.cost %} +
+ £{{ '%.2f'|format(entry.cost) }} +
+ {% endif %} +
{# Ticket widget below card #} {% if entry.ticket_price is not none %} diff --git a/templates/_types/page_summary/_cards.html b/templates/_types/page_summary/_cards.html index b6958ab..a197731 100644 --- a/templates/_types/page_summary/_cards.html +++ b/templates/_types/page_summary/_cards.html @@ -5,10 +5,13 @@ {# Date header when date changes (list view only) #} {% set entry_date = entry.start_at.strftime('%A %-d %B %Y') %} {% if loop.first or entry_date != entries[loop.index0 - 1].start_at.strftime('%A %-d %B %Y') %} + {% set date_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %}
-

- {{ entry_date }} -

+ +

+ {{ entry_date }} +

+
{% endif %} {% include "_types/page_summary/_card.html" %}