47 lines
1.9 KiB
HTML
47 lines
1.9 KiB
HTML
|
{{ define "main" }}
|
||
|
{{ with .Params.image }}
|
||
|
<img class="coverimage" src="{{ . }}" />
|
||
|
{{ 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 }}
|
||
|
<img class="avatar-small" src="{{ .Params.image }}" alt="Avatar">
|
||
|
{{ else }}
|
||
|
<img class="avatar-small" src="{{ $.Site.Params.defaultimage }}" alt="Avatar">
|
||
|
{{ end }}
|
||
|
<h4 class="author-title">{{ .Params.name }}</h4>
|
||
|
<div class="social-media">
|
||
|
<span>
|
||
|
{{- range .Params.social}}
|
||
|
<a href="{{ .url }}"><i class="fab fa-{{ .type }}"></i></a>
|
||
|
{{- end}}
|
||
|
{{if .Params.mail}}
|
||
|
<a href="mailto:{{ .Params.mail }}"><i class="fas fa-at"></i></a>
|
||
|
{{end}}
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
{{end}}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|