diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 47f6d12..c179236 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,8 @@ {{ define "main" -}}
-
+ {{- $mainwidth := or (and .Params.noSidebar "12") "8" -}} +
{{ if .Title -}} @@ -20,12 +21,14 @@ {{- end }} {{- end }} -
- {{ .Content }} -
+ {{ with .Content -}} +
{{ . }}
+ {{- end }}
- {{ partial "sidebar.html" . }} + {{ if not .Params.noSidebar -}} + {{ partial "sidebar.html" . }} + {{- end }}
{{ if eq .Site.Params.showChildArticles "cards" -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index eb7693a..1cc5b34 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -25,7 +25,7 @@ {{- end -}} {{- else if .Params.teaser -}}
-
+
{{ .Params.teaser }}
@@ -35,7 +35,7 @@ alt="Default Dmage"> {{- else if .Params.Summary -}}
-
+
{{ .Params.Summary }}