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 }}

Neuigkeiten

- {{- range $upcoming.ByDate }} -
- {{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }} - - {{- if in .RawContent "" }} - {{ .Summary | safeHTML }} - {{- else }} -

{{ .Summary | safeHTML }}

- {{- end }} - {{- if .Truncated }} -

mehr lesen

- {{- end }} -
- {{- end }} - - {{- range $articleNew.ByDate }} + {{- range $neuigkeiten.ByDate }}
{{- partial "blog-header.html" (dict "headingLink" true "level" 4 "reduced" true "page" . ) }}