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

{{ .Title }}

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