Skip to content

Commit

Permalink
Merge pull request #1309 from helsingborg-stad/fix/archive-block-date
Browse files Browse the repository at this point in the history
fix: archive block date
  • Loading branch information
NiclasNorin authored Feb 3, 2025
2 parents 794074b + d9d0726 commit ddc8ba4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion views/v3/partials/post/post-grid.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
'alt' => $post->images['thumbnail16:9']['alt'] ?? '' ? $post->images['thumbnail16:9']['alt'] ?? '' : $post->postTitle,
'backgroundColor' => 'secondary'
],
'date' => $post->archiveDate,
'date' => [
'timestamp' => $post->archiveDate,
'format' => $post->archiveDateFormat
],
'dateBadge' => $post->archiveDateFormat == 'date-badge',
'classList' => ['t-archive-block'],
'context' => ['archive', 'archive.list', 'archive.list.block'],
Expand Down

0 comments on commit ddc8ba4

Please sign in to comment.