{{ define "main" }} {{ $enable_toc := and (.Params.toc | default site.Params.toc) (gt (len .TableOfContents) 100) }} {{ $lang := .Site.Language.Lang }} {{ $page := . }}

{{ .Title }}

{{ with .Description }}

{{ . }}

{{ end }}
{{ if $enable_toc }}
{{ .Title }}
{{ .TableOfContents }}
{{ end }}
{{ partial "refactor-content.html" . }}
{{ with .Params.categories }} {{ end }} {{ with .Params.tags }} {{ end }}
{{ with (i18n "copyright.license.template") }} {{ $replacement := printf `%s` (i18n "copyright.license.link") (i18n "copyright.license.name") }} {{ replace . ":LICENSE_NAME" $replacement | safeHTML }} {{ end }}
{{ end }} {{ define "panel" }} {{ partial "toc.html" . }} {{ end }} {{ define "tail" }} {{ partial "related-posts.html" . }} {{ partial "post-nav.html" . }} {{ partial "comment.html" . }} {{ end }}