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

{{ .Title }}

{{ with .Description }}

{{ . }}

{{ end }}
{{ if $enable_toc }}
{{ .Title }}
{{ .TableOfContents }}
{{ end }}
{{ .Content }}
{{ 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 }}