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
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:
@@ -3,7 +3,7 @@
|
|||||||
<div class="flex flex-col sm:flex-row sm:items-start justify-between gap-3">
|
<div class="flex flex-col sm:flex-row sm:items-start justify-between gap-3">
|
||||||
{# Left: event info #}
|
{# Left: event info #}
|
||||||
<div class="flex-1 min-w-0">
|
<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">
|
<a href="{{ day_href }}" class="hover:text-emerald-700">
|
||||||
<h2 class="text-lg font-semibold text-stone-900">{{ entry.name }}</h2>
|
<h2 class="text-lg font-semibold text-stone-900">{{ entry.name }}</h2>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{# Tile card for page summary — compact event tile #}
|
{# Tile card for page summary — compact event tile #}
|
||||||
<article class="rounded-xl bg-white shadow-sm border border-stone-200 overflow-hidden">
|
<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">
|
<a href="{{ day_href }}" class="block hover:bg-stone-50 transition">
|
||||||
<div class="p-3">
|
<div class="p-3">
|
||||||
<h2 class="text-base font-semibold text-stone-900 line-clamp-2">{{ entry.name }}</h2>
|
<h2 class="text-base font-semibold text-stone-900 line-clamp-2">{{ entry.name }}</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user