small fixes

This commit is contained in:
teldra 2022-04-04 13:05:33 +02:00
parent 527b5301da
commit 8a87dcf4c6
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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 -}}
<!-- <a href="/featured"><h2>{{ "featured" | T }}</h2></a> -->
@ -19,7 +19,7 @@
{{ .Content }}
</article>
{{ 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" . }}