2020-04-15 15:48:16 +02:00
{{ define "main" }}
2022-06-24 16:32:15 +02:00
< article >
2020-04-15 15:48:16 +02:00
< div class = "row justify-content-center" >
2022-06-24 16:32:15 +02:00
< div class = "col-md-12 col-lg-10" >
< div class = "blog-header" >
< div class = "mt-5 mb-n3" > {{ if .Params.categories -}}{{ range $index, $category := .Params.categories -}}{{ if gt $index 0 -}}, {{ end -}}< a class = "link-muted" href = "{{ " / categories / " | absURL } } { { . | urlize } } / " > {{ . }}< / a > {{ end -}}{{ end -}}< / div >
< h1 > {{ .Title }}< / h1 >
{{ partial "main/blog-meta.html" . }}
< / div >
< / div >
2022-06-27 14:41:00 +02:00
< div class = "col-md-13" >
2022-06-24 16:32:15 +02:00
< div class = "mt-n3" >
{{- .Scratch.Set "fillImage" "1270x620 Center" -}}
{{ partial "content/figure.html" . }}
< / div >
< / div >
2022-06-27 14:41:00 +02:00
< div class = "col-md-12 col-lg-9" >
2022-06-24 16:32:15 +02:00
{{ .Content }}
{{ if .Params.tags -}}
< div class = "mt-4" >
{{ range $index, $tag := .Params.tags -}}
< a class = "btn btn-light" href = "{{ " / tags / " | absURL } } { { . | urlize } } / " role = "button" > {{ . }}< / a >
{{ end -}}
< / div >
{{ end -}}
2020-04-15 15:48:16 +02:00
< / div >
< / div >
2022-06-24 16:32:15 +02:00
< / article >
2022-06-27 14:41:00 +02:00
{{ $related := .Site.RegularPages.Related . | first 3 -}}
{{ with $related -}}
< div class = "related-posts" >
< div class = "row justify-content-center" >
< div class = "col" >
< h2 class = "section-title" > Related posts< / h2 >
< / div >
< / div >
< div class = "row row-cols-1 row-cols-md-2 row-cols-lg-3 g-lg-5" >
{{ range . -}}
< div class = "col" >
< div class = "card" >
{{- .Scratch.Set "fillImage" "1270x620 Center" -}}
{{ partial "content/card-image.html" . }}
< div class = "card-body" >
< article >
< h2 class = "h3" > < a class = "stretched-link text-body" href = "{{ .RelPermalink }}" > {{ .Params.title }}< / a > < / h2 >
< p > {{ .Params.excerpt | safeHTML }}< / p >
{{ partial "main/blog-meta.html" . -}}
< / article >
< / div >
< / div >
< / div >
{{ end -}}
< / div >
< / div >
{{ end -}}
{{ end }}