Fix day view links to use correct /day/<Y>/<M>/<D>/ URL format
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m18s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-22 22:41:16 +00:00
parent e5ab555359
commit 9f46520b45
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<div class="flex flex-col sm:flex-row sm:items-start justify-between gap-3">
{# Left: event info #}
<div class="flex-1 min-w-0">
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/' ~ entry.start_at.strftime('%Y/%m/%d') ~ '/') %}
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %}
<a href="{{ day_href }}" class="hover:text-emerald-700">
<h2 class="text-lg font-semibold text-stone-900">{{ entry.name }}</h2>
</a>

View File

@@ -1,6 +1,6 @@
{# Tile card for page summary — compact event tile #}
<article class="rounded-xl bg-white shadow-sm border border-stone-200 overflow-hidden">
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/' ~ entry.start_at.strftime('%Y/%m/%d') ~ '/') %}
{% set day_href = events_url('/' ~ post.slug ~ '/calendars/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %}
<a href="{{ day_href }}" class="block hover:bg-stone-50 transition">
<div class="p-3">
<h2 class="text-base font-semibold text-stone-900 line-clamp-2">{{ entry.name }}</h2>