diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0365132..17245a0 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 }}
-