{{ define "head" }} {{ if .Params.featuredImg -}} {{- else if .Params.images -}} {{- range first 1 .Params.images -}} {{- end -}} {{- end -}} {{ end }} {{ define "header" }} {{ partial "header.html" . }} {{ end }} {{ define "main" }} {{- if (or .Params.images .Params.featuredImg) }}
{{- end }}
{{- if and (not (eq .Site.Params.legacyLayout nil)) (.Site.Params.legacyLayout) -}}

{{ .Title }}

{{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
{{- if .Site.Params.relatedPosts }} {{- partial "related-posts.html" . -}} {{- end }}
{{- partial "posts_single_info.html" . -}}

{{- else -}}

{{ .Title }}


{{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
{{- if .Site.Params.relatedPosts }} {{- partial "related-posts.html" . -}} {{- end }}
{{- end -}} {{- if .Params.toc }} {{- end }}
{{- with .NextInSection }} {{- end }} {{- with .PrevInSection }} {{- end }}
{{- partial "comments.html" . -}}
{{ end }} {{ define "footer" }} {{ partialCached "footer.html" . }} {{ end }}