{{ define "main" }}

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

{{ partial "post-metadata.html" . }} {{ with (.GetTerms "series") }} {{ range . }}
{{ partial "icon.html" "info" }} This post is part of a series: {{ .LinkTitle }}
{{ end }} {{ end }} {{ if .Params.Toc }}
{{ i18n "table_of_contents" }} {{ .TableOfContents }}
{{ end }} {{ with .Resources.GetMatch "feature" }}
{{ partial "figure.html" (dict "src" . "border" true) }}
{{ end }} {{ .Content }} {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }}

{{ i18n "see_also" }}

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