{{ $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 }} {{ $artworksExist := .Params.artworks }} {{ if $artworksExist }} {{ .Params.artworks.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 $artworksExist }}

This work ©{{ .Params.date.Year }} by Johanna Decker is licensed under CC BY-NC-ND 4.0

{{ end }} {{ 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" . }}