From a18735793981b74b33cd0fc2c766d71bcfba64df Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 28 Mar 2022 12:36:58 +0200 Subject: [PATCH] small fixes --- content/news/neue-seite/index.de.md | 2 +- themes/buha/layouts/index.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/content/news/neue-seite/index.de.md b/content/news/neue-seite/index.de.md index 2cccd8d8..f68c500e 100644 --- a/content/news/neue-seite/index.de.md +++ b/content/news/neue-seite/index.de.md @@ -1,6 +1,6 @@ --- title: "Neue Homepage" -date: "2021-10-23T14:00:00+02:00" +date: "2022-03-02T14:00:00+02:00" --- Wir präsentieren nun unsere neue Homepage. diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index a6137231..509e60a4 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -20,9 +20,11 @@ {{ end }} {{ $meta := false }} {{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.featured" "=" true) }} + {{ $article_age := sub now.Unix (int .Date.Unix) }} + {{ if lt $article_age "1209600" }}
-

{{- .Title -}}

+

{{- .Title -}}

featured
@@ -70,6 +72,7 @@
+ {{ end }} {{ end }} {{ end }} {{- range first 5 $paginator.Pages -}}