{{ $include_toc := .Params.include_toc}}

{{ .Title }}

{{ with .Params.subtitle }} {{.}} {{ end }} {{ partial "page-single/post-meta.html" . }}
{{ $screenshotsExist := .Params.screenshots }} {{ if $screenshotsExist }} {{ .Params.screenshots.s1.caption }} {{ end }} {{ $tableOfContents := .TableOfContents }} {{ with .Site.Params.toc }} {{ if ne $include_toc false }}
{{ if eq . "hugo" }} {{ $tableOfContents }} {{ else if eq . "tocbot"}}
{{ end }} {{ if $screenshotsExist }} Additional Screenshots {{ end }}
{{ end }} {{ end }}
{{ .Content }}
{{ if $screenshotsExist }}

Additional Screenshots

{{ range $index, $element := $screenshotsExist }} {{ if not (eq $index "s1") }}
{{ .caption }}
{{ end }} {{ end }}
{{ end }} {{ partial "page-single/post-navigation.html" . }} {{ partial "page-single/post-related.html" . }} {{ partial "page-single/post-comment.html" . }}