diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 4924fc8..a3bb923 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,23 +1,17 @@ {{ 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) }}
@@ -29,17 +23,15 @@

{{ .Title }}

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