diff --git a/themes/ccchh/layouts/index.html b/themes/ccchh/layouts/index.html index 5963234..8631c3b 100644 --- a/themes/ccchh/layouts/index.html +++ b/themes/ccchh/layouts/index.html @@ -12,25 +12,12 @@ {{- $articleDisplayTime := time.ParseDuration "-126h" }} {{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }} - {{ if or $upcoming $articleNew }} + {{- $neuigkeiten := $upcoming | append $articleNew }} + + {{ if $neuigkeiten }}
{{ .Summary | safeHTML }}
- {{- end }} - {{- if .Truncated }} - - {{- end }} -