{{ define "main" }} {{ $releases := partial "releases.html" . }} {{/* Hervorgehoben wird das neueste Album, ohne Album das neueste Release. */}} {{ $featured := false }} {{ with where $releases "kind" "Album" }}{{ $featured = index . 0 }}{{ else }}{{ with $releases }}{{ $featured = index . 0 }}{{ end }}{{ end }}

{{ .Title }}

{{ with .Content }}
{{ . }}
{{ end }}
{{ with $featured }}
{{ partial "img.html" (dict "res" .cover "alt" (printf "Cover von %s" .title) "sizes" "(min-width: 900px) 30rem, 80vw" "widths" (slice 480 800) "eager" true) }}

{{ .kind }}, erschienen am {{ .date | time.Format "2. January 2006" }}

{{ .title }}

{{ with $.Params.albumText }}

{{ . }}

{{ end }} Auf Spotify hören
{{ end }} {{ $rest := slice }} {{ range $releases }}{{ if or (not $featured) (ne .key $featured.key) }}{{ $rest = $rest | append . }}{{ end }}{{ end }} {{ with $rest }}

Diskografie

    {{ range . }}
  1. {{ partial "img.html" (dict "res" .cover "alt" (printf "Cover von %s" .title) "sizes" "(min-width: 900px) 22rem, 45vw" "widths" (slice 400 800)) }}

    {{ .title }}

    {{ .kind }},

  2. {{ end }}
{{ end }}

Reinhören

{{ partial "spotify.html" . }}

Mehr von uns

{{ end }}