{{ define "main" }} {{- $images := .Resources.ByType "image" }} {{- $cover := $images.GetMatch (.Params.cover | default "*cover*") }} {{- $feature := $images.GetMatch (.Params.feature | default "*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 }}
{{ $.Params.featureAlt | default $.Params.coverAlt | default {{ with $.Params.coverCaption }}
{{ . | markdownify }}
{{ end }}
{{ end }}
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents "
{{ partial "toc.html" . }}
{{ end }}
{{ .Content | emojify }}
{{ end }}