small fixes

This commit is contained in:
teldra 2022-04-08 14:12:20 +02:00
parent af42e4acd4
commit 52da0b8919
4 changed files with 43 additions and 24 deletions

View File

@ -3,6 +3,7 @@ title: "Gedenken an Arkan"
date: 2022-04-05T09:31:00+02:00 date: 2022-04-05T09:31:00+02:00
when: "Donnerstag, 07.04.2022, 18:00 Uhr, Celler Triftpark" when: "Donnerstag, 07.04.2022, 18:00 Uhr, Celler Triftpark"
contact: "ArkanGedenken@riseup.net" contact: "ArkanGedenken@riseup.net"
featured: true
--- ---
Am 7. April jährt sich der Todestag des êzîdischen Jugendlichen Arkan Hussein Khalaf zum zweiten Mal. Wir, die Initiative "In Gedenken an Arkan“, in der sich unterschiedliche Gruppen und Einzelpersonen aus Celle organisieren, rufen zur Beteiligung am Gedenken auf. Am 7. April jährt sich der Todestag des êzîdischen Jugendlichen Arkan Hussein Khalaf zum zweiten Mal. Wir, die Initiative "In Gedenken an Arkan“, in der sich unterschiedliche Gruppen und Einzelpersonen aus Celle organisieren, rufen zur Beteiligung am Gedenken auf.

View File

@ -2,7 +2,6 @@
title: "Zeitungsprojekt Revista" title: "Zeitungsprojekt Revista"
date: "1993-09-04T19:00:00+02:00" date: "1993-09-04T19:00:00+02:00"
lastmod: "2022-04-04T19:00:00+02:00" lastmod: "2022-04-04T19:00:00+02:00"
featured: true
about: true about: true
--- ---
Was ist Revista? Revista ist spanisch und heißt Zeitung, und genau das sind wir, eine Zeitung. Die revista ist ein relativ neues Projekt, die erste Ausgabe erschien um Oktober 1999. Was ist Revista? Revista ist spanisch und heißt Zeitung, und genau das sind wir, eine Zeitung. Die revista ist ein relativ neues Projekt, die erste Ausgabe erschien um Oktober 1999.

View File

@ -8,7 +8,7 @@
{{ $s := .Site.Params }} {{ $s := .Site.Params }}
{{- $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 $posts ".Params.featured" "=" true) "Type" "in" $s.searchSections }} {{- $featured := where (where $posts ".Params.featured" "=" true) "Type" "in" $s.searchSections }}
{{ $featured = where $featured (.Lastmod.AddDate 0 0 14) "gt" now }} {{ $featured = where $featured ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }}
{{- $paginator := .Paginate $posts -}} {{- $paginator := .Paginate $posts -}}
{{ if eq $paginator.PageNumber 1 }} {{ if eq $paginator.PageNumber 1 }}
{{ if ne .Content "" }} {{ if ne .Content "" }}

View File

@ -1,25 +1,44 @@
{{ if and (or .paginator .pages) .amount }} {{ if or .paginator .pages }}
{{ $amount := .amount }} {{ if .amount }}
{{ $pages := "" }} {{ $amount := .amount }}
{{ if .pages }} {{ $pages := "" }}
{{ $pages = .pages.ByLastmod.Reverse }} {{ $max_age := int .max_age }}
{{ else if .paginator }} {{ $featured := .featured }}
{{ $pages = .paginator.Pages.ByLastmod.Reverse }} {{ if .pages }}
{{ end }} {{ $pages = .pages.ByLastmod.Reverse }}
{{- range first $amount $pages -}} {{ else if .paginator }}
{{ if .Title }} {{ $pages = .paginator.Pages.ByLastmod.Reverse }}
<article class="articlebgcol1 borderrad25"> {{ end }}
<a href="{{- .Permalink -}}"> {{- range first $amount $pages -}}
<div id="articletitle"> {{ $true := true }}
<h2>{{- .Title -}}</h2>
</div> {{ if $featured }}
</a> {{ if le (.Lastmod.AddDate 0 0 $max_age) now }}
<a href="{{- .Permalink -}}"> {{ $true = false }}
<div id="articlecontent"> {{ end }}
{{ partial "contentlayouts/article.html" (dict "context" . "type" "list") }} {{ else }}
</div> {{ if $max_age }}
</a> {{ if and (lt (.Lastmod.AddDate 0 0 $max_age) now) (eq .Params.featured true) }}
</article> {{ $true = false }}
{{ end }}
{{ end }}
{{ end }}
{{ if eq $true true }}
{{ if .Title }}
<article class="articlebgcol1 borderrad25">
<a href="{{- .Permalink -}}">
<div id="articletitle">
<h2>{{- .Title -}}</h2>
</div>
</a>
<a href="{{- .Permalink -}}">
<div id="articlecontent">
{{ partial "contentlayouts/article.html" (dict "context" . "type" "list") }}
</div>
</a>
</article>
{{ end }}
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}