From 8a87dcf4c6e44539379f921bd34439de98eca712 Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 4 Apr 2022 13:05:33 +0200 Subject: [PATCH] small fixes --- content/news/01.08.2021-Elektrohouse/index.md | 3 +-- themes/buha/layouts/index.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/content/news/01.08.2021-Elektrohouse/index.md b/content/news/01.08.2021-Elektrohouse/index.md index fee62e71..19720242 100644 --- a/content/news/01.08.2021-Elektrohouse/index.md +++ b/content/news/01.08.2021-Elektrohouse/index.md @@ -3,7 +3,6 @@ title: "Elektrohouse" date: 2022-03-27T03:24:49+02:00 when: "13.4.1983" price: "free" -covid: "" -register: "" events: ["Party"] +featured: true --- diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index 10c97f45..8be48ff9 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -9,7 +9,7 @@ {{ $s := .Site.Params }} {{ $meta := false }} {{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }} - {{- $featured := where (where (where $posts "Type" "in" .Site.RegularPages) ".Params.featured" "=" true) "Type" "in" $s.searchSections }} + {{- $featured := where (where $posts ".Params.featured" "=" true) "Type" "in" $s.searchSections }} {{- $paginator := slice -}} {{- $paginator = .Paginate $posts.ByDate.Reverse -}} @@ -19,7 +19,7 @@ {{ .Content }} {{ end }} - {{ range first 3 $featured.ByLastmod.Reverse }} + {{ range first 3 $featured.ByLastmod }} {{ $article_age := sub now.Unix (int .Date.Unix) }} {{ if lt $article_age "1209600" }} {{ partial "structure/list_article.html" . }}