{{ define "main" }}

{{ .Title }}

{{ partial "main/blog-meta.html" . }}
{{ $image := .Resources.GetMatch (printf "**%s" (index .Params.images 0)) -}} {{ if $image -}}
{{ partial "picture" (dict "ctx" . "src" $image "alt" .Title "class" "img-fluid blur-up img-post-single w-100 h-auto rounded-0" )}}
{{ end -}}
{{ with .Params.summary -}}

{{ . }}

{{ end -}} {{ .Content }} {{ if .Params.tags -}}
{{ range $index, $tag := .Params.tags -}} {{ . }} {{ end -}}
{{ end -}}
{{ end }} {{ define "sidebar-footer" }} {{ if site.Data.doks.relatedPosts -}} {{ $related := .Site.RegularPages.Related . | first 3 -}} {{ with $related -}}
{{ end -}} {{ end -}} {{ end }}