From 3ca0438ea2b3116f6ac757d387d4e0ef2bc6d5a5 Mon Sep 17 00:00:00 2001 From: Niclas Date: Fri, 31 Jan 2025 10:08:29 +0100 Subject: [PATCH] fix: compressed posts archive date --- views/v3/partials/post/post-compressed.blade.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/views/v3/partials/post/post-compressed.blade.php b/views/v3/partials/post/post-compressed.blade.php index 4682268e8..f2ff2d9bd 100644 --- a/views/v3/partials/post/post-compressed.blade.php +++ b/views/v3/partials/post/post-compressed.blade.php @@ -26,7 +26,9 @@ @typography(['variant' => 'meta', 'element' => 'p', 'classList' => ['archive-compressed__date', 'u-margin__top--4']]) {{$lang->publish}}: @date([ - 'timestamp' => $post->archiveDate + 'action' => 'formatDate', + 'timestamp' => $post->archiveDate, + 'format' => $post->archiveDateFormat ]) @enddate @endtypography @@ -35,7 +37,8 @@ {{$lang->publish}}: @date([ 'action' => 'formatDate', - 'timestamp' => $post->getPublishedTime() + 'timestamp' => $post->getPublishedTime(), + 'format' => $post->archiveDateFormat ]) @enddate @endtypography @@ -44,7 +47,8 @@ {{$lang->updated}}: @date([ 'action' => 'formatDate', - 'timestamp' => $post->getModifiedTime() + 'timestamp' => $post->getModifiedTime(), + 'format' => $post->archiveDateFormat ]) @enddate @endtypography