{{ define "main" }} {{ .Scratch.Set "scope" "single" }}
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} {{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }} {{ if templates.Exists $heroStyle }} {{ partial $heroStyle . }} {{ else }} {{ partial "partials/hero/basic.html" . }} {{ end }} {{- end -}}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }}

{{ .Title | emojify }}

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

{{ partial "series-closed.html" . }}
{{ $jsPage := resources.Get "js/page.js" }} {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
{{ .Title }}
{{ end }}