{{ $context := .context }} {{ $sidebar := .sidebar | default (dict "context" $context) }} {{ $breadcrumbEnabled := .breadcrumbEnabled | default false }} {{ $title := .title | default $context.Title }} {{ $showContextMenu := .showContextMenu | default false }} {{ $showLastUpdated := .showLastUpdated | default false }} {{ $showPagination := .showPagination | default false }} {{ $showComments := .showComments | default true }} {{ $tocPartial := .tocPartial | default "toc.html" }}
{{ partial "sidebar.html" $sidebar }} {{ partial $tocPartial $context }}
{{ partial "breadcrumb.html" (dict "page" $context "enable" $breadcrumbEnabled) }}
{{ if $title }}

{{ $title }}

{{ if $showContextMenu }} {{ partial "components/page-context-menu" $context }} {{ end }}
{{ end }} {{ $context.Content }}
{{ if $showLastUpdated }} {{ partial "components/last-updated.html" $context }} {{ end }} {{ if $showPagination }} {{ partial "components/pager.html" $context }} {{ end }} {{ if $showComments }} {{ partial "components/comments.html" $context }} {{ end }}