{{ 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 }} {{/* Layout: explicit `layout:` in front matter, else derive: - cover_image present → image - none → text */}} {{ $layout := .Params.layout }} {{ if not $layout }} {{ $layout = cond (ne $cover nil) "image" "text" }} {{ end }}
  1. {{ if and $cover (eq $layout "image") }} {{ end }}
    {{ if and $cover (eq $layout "icon") }} {{ end }} {{ with .Parent }}

    {{ .Title }}

    {{ end }}

    {{ .LinkTitle }}

    {{ with .Params.summary }}

    {{ . }}

    {{ end }}
  2. {{ end }}
{{ if gt (len $library) 20 }}

→ Alle Beiträge in der Library

{{ end }}
{{ end }}