Theme: Fix doubled "Neuigkeiten" on start page, differentiate events from articles more #159

Merged
jtbx merged 3 commits from feat/home-double-news-heading into main 2026-06-13 21:26:39 +02:00
Showing only changes of commit da5da9fd62 - Show all commits

Theme: Display articles for 5 days (+6 hours)

jtbx 2026-06-08 22:00:24 +02:00

View file

@ -28,7 +28,7 @@
{{- end }}
{{- $article := where (.Site.GetPage "blog").Pages ".Params.categories" "article" }}
{{- $articleDisplayTime := time.ParseDuration "-30h" }}
{{- $articleDisplayTime := time.ParseDuration "-126h" }}
{{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }}
{{ if $articleNew }}
<div class="announcements">