diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 036513232..735a7c701 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,8 +4,10 @@ {{ end }} {{ define "main" }} + {{- $related_content := .RegularPages.Related . -}} + {{- $needs_aside := or .Params.toc $related_content -}} {{ $section := .Site.GetPage "section" .Section }} -
+
-
+
{{- .Content -}} {{- partial "tags.html" . -}}
@@ -59,10 +61,11 @@

{{ end }}

- + {{- if $needs_aside -}} + {{- end -}}
{{ end }}