{{ define "main" }} {{/* {{ if .Menus }} {{ end }} */}}

{{ trim .Title " " | markdownify }}

{{ partial "post-language-switcher.html" . }}
{{ partial "post-info.html" . }}
{{ partial "toc.html" .}}
{{ .Content }}
{{ $readNextPosts := 3}} {{ if isset .Site.Params "readnextposts" }} {{ $readNextPosts = .Site.Params.readNextPosts }} {{ end }} {{ if gt $readNextPosts 0 }} {{ $related := .Site.RegularPages.Related . | first $readNextPosts }} {{ with $related }} {{ end }} {{ end }} {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} {{ partial "post-pagination.html" . }} {{ end }} {{ if not .Params.disableComments }} {{ partial "comments.html" . }} {{ end }} {{/* When you use ```mermaid``, render-codeblock-mermaid.html is called and `.Store.Set "hasMermaid"` is executed. `.Store.Get "hasMermaid"` will return true and mermaid.js will be loaded. */}} {{ if .Store.Get "hasMermaid" }} {{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/load-mermaid.js") }} {{ $colorTheme := "light" }} {{ if and (isset site.Params "colortheme") (ne site.Params.colortheme "") }} {{ $colorTheme = site.Params.colortheme | lower }} {{ end }} {{ end }} {{ end }}