{{ define "main" }} {{- $images := .Resources.ByType "image" }} {{- $cover := $images.GetMatch "*cover*" }} {{- $feature := $images.GetMatch "*feature*" | default $cover }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }}

{{ .Title | emojify }}

{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
{{ with $feature }} {{ end }}
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents "
{{ partial "toc.html" . }}
{{ end }}
{{ .Content | emojify }}
{{ end }}