{{ $partition := partial "get-partition.html" (dict "page" .) }} {{ partial "documentation/sidebar-menu" (dict "context" . "partition" $partition) }}
{{ if eq .Section "documentation" }} {{ if .Params.content }}
{{ partial "documentation/custom-content.html" . }}
{{ else }}
{{ if not (eq .Params.breadcrumb false) }} {{ partial "documentation/breadcrumbs" . }} {{ end }}
{{ partial "article-content.html" . }}
{{ partial "documentation/feedback.html" . }}
{{ partial "table-of-contents" . }} {{ end }} {{ end }} {{ if eq .Section "articles" }} {{ $subject := site.GetPage "articles" }} {{ $currentNode := .Params }} {{ if .Params.isMainPage }}
{{ range $subject.Pages }} {{ if .Params.isCategoryPage }}

{{ .Params.title }}

{{ .Params.description }}

{{ $currentNode.learnButton }}
{{ $category := .Params.category }}
{{ $list := first 0 site.Pages }} {{ range $subject.Pages }} {{ if and (eq .Params.category $category) (not .Params.isCategoryPage) }} {{ $list = $list | append . }} {{ end }} {{ end }} {{ $all := $list.ByPublishDate.Reverse }} {{ range first 3 $all }} {{ end }}
{{ end }} {{ end }}
{{ else if .Params.isCategoryPage }}
{{ partial "documentation/breadcrumbs" . }}

{{ .Params.title }}

{{ .Params.description }}

{{ $category := .Params.category }}
{{ $list := first 0 site.Pages }} {{ range $subject.Pages }} {{ if and (eq .Params.category $category) (not .Params.isCategoryPage) }} {{ $list = $list | append . }} {{ end }} {{ end }} {{ $all := $list.ByPublishDate.Reverse }} {{ $paginator := .Paginate $all 14 }} {{ range $paginator.Pages }} {{ end }}
{{ if gt $paginator.TotalPages 1 }} {{ partial "pagination" $paginator }} {{ end }}
{{ else }}
{{ partial "documentation/breadcrumbs" . }}
{{ $firstUrlElement := index (split .RelPermalink "/") 1 }} {{ $url := path.Join $firstUrlElement .Params.category }} {{ with (.Site.GetPage $url) }} Back to {{ .Params.Title }} {{ end }}

{{ .Params.title }}

{{ .Params.author }}

·

{{ time.Format "January 02, 2006" .Date }}

{{ if .Params.preview_dir }} {{ .Title }} {{ else }} {{ partial "preview-image" (dict "context" . "default_file_name" "title.jpg" "preview_file" .Params.title_preview_image) }} {{ end }}
{{ partial "article-content.html" . }}
{{ partial "documentation/feedback.html" . }}
{{ partial "table-of-contents" . }} {{ end }} {{ end }} {{ partial "documentation/footer.html" . }}