{{ define "main" }}

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

{{ partial "post-metadata/full.html" . }} {{ with (.GetTerms "series") }} {{ $series := slice }} {{ range . }} {{ $series = $series | append (printf `%s` .Permalink .LinkTitle) }} {{ end }}
{{ partial "icon.html" "info" }} {{ if gt (len $series) 1 }} This post is part of multiple series: {{ else }} This post is part of a series: {{ end }} {{ delimit $series ", " }}
{{ end }} {{ if .Params.Toc }}
{{ i18n "table_of_contents" }} {{ .TableOfContents }}
{{ 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 or .NextInSection .PrevInSection }}
{{ with .NextInSection }} {{ else }} {{ end }} {{ with .PrevInSection }} {{ else }} {{ end }}
{{ end }} {{ if .Params.comments }}
{{ partial "comments.html" . }}
{{ end }} {{ end }}