{{ define "main" }} {{ if .Menus }} <nav class="post-navigation"> {{ range .Menus }} <a href="{{ .ConfiguredURL | absLangURL }}" title="{{ .Title }}">{{ .Name | markdownify }}</a> {{ end }} </nav> {{ end }} <article class="post h-entry"> <div class="post-header"> <header> <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " | markdownify }}</h1> {{ partial "post-language-switcher.html" . }} </header> {{ partial "post-info.html" . }} </div> {{ partial "toc.html" .}} <div class="content e-content"> {{ .Content }} </div> </article> {{ if gt .Site.Params.readNextPosts 0 }} {{ $related := .Site.RegularPages.Related . | first .Site.Params.readNextPosts }} {{ with $related }} <h3 class="read-next-title noselect">{{ i18n "readNext" }}</h3> <ul class="read-next-posts noselect"> {{ range . }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end }} </ul> {{ end }} {{ end }} {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} {{ partial "post-pagination.html" . }} {{ end }} {{ if not .Params.disableComments }} {{ partial "comments.html" . }} {{ end }} {{ end }}