{{ define "main" }}

{{ .Title | markdownify }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}

{{ partial "post-metadata.html" . }} {{ if .Params.Toc }}
{{ i18n "table_of_contents" }} {{ .TableOfContents }}
{{ end }} {{ with .Resources.GetMatch "feature" }}
{{ partial "figure.html" . }}
{{ end }} {{ .Content }} {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }}

{{ i18n "see_also" }}

{{ end }} {{ if .Params.comments }} {{ partial "comments.html" . }} {{ end }} {{ end }}