{{ .Title }}
+
+ {{ .Content | replaceRE "()" `${1} ${3}` | safeHTML }}
+
+ {{- if .Site.Params.relatedPosts }}
+ {{- partial "related-posts.html" . -}}
+ {{- end }}
+ + +
diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..a593575 --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,77 @@ +{{ 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 }} +