{{ define "main" }} {{ with .Params.image }} {{ $style := "coverimage {{if ne .Params.image.cover }} noCover {{ end }}" }} {{- partial "components/image.html" (dict "style" $style "url" .url "alt" .alt) -}} {{ with .copyright }} {{ end }} {{ end }}
{{ with .Params.tags }}
{{ range . }} #{{ . }} {{ end }}
{{ end }}

{{ .Title }}

{{.Date.Format "02.01.2006"}} - ⏱ {{.ReadingTime}} Minuten
{{ .Content }} {{- $author := .Params.author }} {{ with .Site.GetPage "/team" }} {{- range .RegularPages -}} {{if eq .Params.name $author}}
{{ if .Params.image }} {{- partial "components/image.html" (dict "style" "avatar-small" "url" .Params.image "alt" .Params.name) -}} {{ else }} {{- partial "components/image.html" (dict "style" "avatar-small" "url" $.Site.Params.defaultimage "alt" "Placeholder") -}} {{ end }}

{{ .Params.name }}

{{end}} {{ end }} {{ end }}
{{ end }}