{{ define "main" }}
{{ $image:= .Params.image }} {{ if $image }} {{ partial "image" (dict "Src" $image "Alt" .Title "Class" "mx-auto" "size" "200x200") }} {{ else if .Params.Email }} {{ .Title }} {{ end }}

{{ .Title }}

{{ .Content }}
{{ $filterByAuthor := where site.RegularPages "Params.author" "==" .Title }} {{ range $filterByAuthor }}
{{ partial "components/blog-card" . }}
{{ end }}
{{ end }}