{{ $config := site.Params }} {{ $context := . }} {{- partial "head/index" . }} {{ if or (eq .Section site.Params.blogDir) (eq .Type "search" ) }} {{- block "main" . }}{{ end }} {{ else }}
{{ $docSections := site.Params.docSections }} {{- with $docSections }}{{- else }} {{- $docSections = "docs" }} {{- end }} {{ $uniqueHomepage := .IsHome }} {{ if site.Params.uniqueHomepage }} {{ if .IsHome }} {{ $uniqueHomepage = true }} {{ end }} {{- partial "head" . }} {{ if or (eq .Section site.Params.blogDir) (eq .Type "search" ) }} {{- block "main" . }}{{ end }} {{ else }}
{{ $docSections := site.Params.docSections }} {{- with $docSections }}{{- else }} {{- $docSections = "docs" }} {{- end }} {{ $uniqueHomepage := .IsHome }} {{ if site.Params.uniqueHomepage }} {{ if .IsHome }} {{ $uniqueHomepage = true }} {{ end }} {{ else }} {{ $uniqueHomepage = false }} {{ end }} {{- if and (in $docSections .Section) (ne $uniqueHomepage true) }} {{- partial "document" . }} {{- else }}
{{- block "main" . }}{{ end }}
{{- end -}}
{{ end }} {{- partial "scripts/translations" . -}} {{- partialCached "footer" . -}} {{- partialCached "sprites" . -}} {{- partial "scripts/bundle" . -}} {{- partial "scripts/mermaid" . -}}