small fixes
This commit is contained in:
parent
7bde25e5d9
commit
64326ee377
|
@ -5,5 +5,5 @@ when: "13.4.1983"
|
||||||
price: "free"
|
price: "free"
|
||||||
covid: ""
|
covid: ""
|
||||||
register: ""
|
register: ""
|
||||||
eventcategories: ["Party"]
|
events: ["Party"]
|
||||||
---
|
---
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
{{ $s := .Site.Params }}
|
{{ $s := .Site.Params }}
|
||||||
{{ $meta := false }}
|
{{ $meta := false }}
|
||||||
{{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }}
|
{{- $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 }}
|
||||||
{{- $paginator := slice -}}
|
{{- $paginator := slice -}}
|
||||||
{{- $paginator = .Paginate $posts.ByDate.Reverse -}}
|
{{- $paginator = .Paginate $posts.ByDate.Reverse -}}
|
||||||
<!-- <a href="/featured"><h2>{{ "featured" | T }}</h2></a> -->
|
<!-- <a href="/featured"><h2>{{ "featured" | T }}</h2></a> -->
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.searchSections) ".Params.featured" "=" true) }}
|
{{ range first 3 $featured.ByLastmod }}
|
||||||
{{ $article_age := sub now.Unix (int .Date.Unix) }}
|
{{ $article_age := sub now.Unix (int .Date.Unix) }}
|
||||||
{{ if lt $article_age "1209600" }}
|
{{ if lt $article_age "1209600" }}
|
||||||
{{ partial "structure/list_article.html" . }}
|
{{ partial "structure/list_article.html" . }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user