-
- {{ partial "breadcrumbs.html" . }}
-
{{ .Title }}
- {{ if .Params.Subtitle }}
- {{ .Params.Subtitle }}
- {{ end }}
+ {{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ end }}
@@ -20,7 +15,7 @@ {{ .Params.Subtitle }}
{{ end }}
-
+ {{ end }}
{{ if .Content }}
{{ partial "shortcuts.html" . }}
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 220cbcdd..68fbb200 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,13 +1,8 @@
{{ define "main" }}
-
- {{ partial "breadcrumbs.html" . }}
-
{{ .Title }}
- {{ if .Params.Subtitle }}
- {{ .Params.Subtitle }}
- {{ end }}
+ {{ with partial "_decorators/content-container.html" . }}
{{ .Content }}
-
+ {{ end }}
{{ partial "shortcuts.html" . }}
{{ end }}
diff --git a/layouts/partials/_decorators/article.html b/layouts/partials/_decorators/article.html
new file mode 100644
index 00000000..b61de093
--- /dev/null
+++ b/layouts/partials/_decorators/article.html
@@ -0,0 +1,6 @@
+
+
+
+ {{- inner . -}}
+
+
diff --git a/layouts/partials/_decorators/content-container.html b/layouts/partials/_decorators/content-container.html
new file mode 100644
index 00000000..17ed620b
--- /dev/null
+++ b/layouts/partials/_decorators/content-container.html
@@ -0,0 +1,8 @@
+
+ {{ partial "breadcrumbs.html" . }}
+
{{ .Title }}
+ {{ if .Params.Subtitle }}
+ {{ .Params.Subtitle }}
+ {{ end }}
+ {{- inner . -}}
+
diff --git a/layouts/partials/posts/list-with-summary.html b/layouts/partials/posts/list-with-summary.html
index f8dea01c..b0c71c10 100644
--- a/layouts/partials/posts/list-with-summary.html
+++ b/layouts/partials/posts/list-with-summary.html
@@ -2,12 +2,9 @@
{{ range $posts }}
-
-
-
- {{ partial "posts/meta.html" . }}
- {{ partial "posts/summary.html" . }}
-
-
+ {{ with partial "_decorators/article.html" . }}
+ {{ partial "posts/meta.html" . }}
+ {{ partial "posts/summary.html" . }}
+ {{ end }}
{{ end }}
diff --git a/layouts/partials/posts/list-without-summary.html b/layouts/partials/posts/list-without-summary.html
index 480f21f8..204b518a 100644
--- a/layouts/partials/posts/list-without-summary.html
+++ b/layouts/partials/posts/list-without-summary.html
@@ -2,11 +2,10 @@
{{ range $posts }}
-
-
-
-
{{ partial "posts/meta.html" . }}
-
-
+ {{ with partial "_decorators/article.html" . }}
+
+
{{ partial "posts/meta.html" . }}
+
+ {{ end }}
{{ end }}
diff --git a/layouts/partials/posts/list.html b/layouts/partials/posts/list.html
index d2f8fb49..9a78dc70 100644
--- a/layouts/partials/posts/list.html
+++ b/layouts/partials/posts/list.html
@@ -28,18 +28,13 @@ {{ i18n "tags" }}
{{ end }}
-
- {{ partial "breadcrumbs.html" . }}
-
{{ .Title }}
- {{ if .Params.Subtitle }}
- {{ .Params.Subtitle }}
- {{ end }}
+ {{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ end }}
{{ $posts := .RegularPagesRecursive.ByPublishDate.Reverse }}
{{ partial "posts/list-without-summary.html" $posts }}
-
+ {{ end }}
{{ if .Content }}
{{ partial "shortcuts.html" . }}
{{ end }}
diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html
index bf93ea71..a802a680 100644
--- a/layouts/partials/posts/post.html
+++ b/layouts/partials/posts/post.html
@@ -1,14 +1,9 @@
-{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
-
- {{ partial "breadcrumbs.html" . }}
-
{{ .Title }}
- {{ if .Params.Subtitle }}
-
{{ .Params.Subtitle }}
- {{ end }}
+ {{ with partial "_decorators/content-container.html" . }}
{{ partial "posts/meta.html" . }}
+ {{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
{{ with $featuredImage }}
{{ if .Params.showOnTop }}
@@ -20,6 +15,6 @@
{{ .Params.Subtitle }}
{{ .Content }}
{{ partial "posts/comments.html" .}}
-
+ {{ end }}
{{ partial "shortcuts.html" . }}
diff --git a/layouts/partials/section/section.html b/layouts/partials/section/section.html
index 7ea44832..1c306226 100644
--- a/layouts/partials/section/section.html
+++ b/layouts/partials/section/section.html
@@ -1,10 +1,5 @@
-
- {{ partial "breadcrumbs.html" . }}
-
{{ .Title }}
- {{ if .Params.Subtitle }}
- {{ .Params.Subtitle }}
- {{ end }}
+{{ with partial "_decorators/content-container.html" . }}
{{ if .Content }}
{{ .Content }}
{{ else }}
@@ -28,7 +23,7 @@ {{ .Params.Subtitle }}
{{ end }}
{{ end }}
-
+{{ end }}