{{ define "main" }} {{ .Content }} {{ $library := where site.RegularPages "Section" "library" }} {{ $journal := first 20 $library.ByDate.Reverse }}

Journal

Was zuletzt geschrieben wurde.

    {{ range $journal }} {{ $section := "" }} {{ with .Parent }}{{ $section = path.Base .RelPermalink }}{{ end }} {{ $author := .Params.author | default site.Params.author.name }} {{ $cover := .Params.cover_image }} {{ $isHero := eq . (index $journal 0) }} {{ $imageMode := .Params.image_mode | default "wide" }}
  1. {{ if and $isHero $cover }} {{ else if $cover }} {{ end }}
    {{ with .Parent }}

    {{ .Title }}

    {{ end }}

    {{ .LinkTitle }}

    {{ with .Params.summary }}

    {{ . }}

    {{ end }}
    {{/* Tags rendered OUTSIDE the entry-link so the inner tags don't auto-close the outer link (invalid HTML: in ). */}} {{- with .Params.tags }} {{- end }}
  2. {{ end }}
{{ if gt (len $library) 20 }}

→ Alle Beiträge in der Library

{{ end }}
{{ end }}