2022-06-27 14:09:44 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ with .Params.image }}
|
2025-04-17 14:22:33 +00:00
|
|
|
{{ $style := "coverimage {{if ne .Params.image.cover }} noCover {{ end }}" }}
|
|
|
|
{{- partial "components/image.html" (dict "style" $style "url" .url "alt" .alt) -}}
|
2022-07-08 14:59:07 +00:00
|
|
|
{{ with .copyright }}
|
|
|
|
<div class="image-copyright">© {{ . }}</div>
|
|
|
|
{{ end }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ end }}
|
|
|
|
<div class="content">
|
|
|
|
{{ with .Params.tags }}
|
|
|
|
<div id="tags">
|
|
|
|
{{ range . }}
|
|
|
|
<a href="{{ "tags" | absURL }}/{{ . | urlize }}/">#{{ . }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="title">
|
|
|
|
<h1 class="content-title">{{ .Title }}</h1>
|
|
|
|
<div class="post-detail">{{.Date.Format "02.01.2006"}} - ⏱ {{.ReadingTime}} Minuten</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
</div>
|
|
|
|
{{ .Content }}
|
|
|
|
{{- $author := .Params.author }}
|
|
|
|
{{ with .Site.GetPage "/team" }}
|
|
|
|
{{- range .RegularPages -}}
|
|
|
|
{{if eq .Params.name $author}}
|
|
|
|
<a href="{{.Permalink}}">
|
|
|
|
<div class="author">
|
|
|
|
{{ if .Params.image }}
|
2025-04-17 14:22:33 +00:00
|
|
|
{{- partial "components/image.html" (dict "style" "avatar-small" "url" .Params.image "alt" .Params.name) -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ else }}
|
2025-04-17 14:22:33 +00:00
|
|
|
{{- partial "components/image.html" (dict "style" "avatar-small" "url" $.Site.Params.defaultimage "alt" "Placeholder") -}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ end }}
|
|
|
|
<h4 class="author-title">{{ .Params.name }}</h4>
|
|
|
|
<div class="social-media">
|
|
|
|
<span>
|
|
|
|
{{- range .Params.social}}
|
2025-04-17 14:22:33 +00:00
|
|
|
{{ partial "components/icon.html" . }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{- end}}
|
|
|
|
{{if .Params.mail}}
|
2025-04-17 14:22:33 +00:00
|
|
|
{{ partial "components/icon.html" (dict "type" "at" "url" "mailto:{{ .Params.mail }}") }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2025-04-17 14:22:33 +00:00
|
|
|
{{ end }}
|