From a01c1642f04f2ab6d7d941a4e4a56b29cb5c738c Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Mon, 9 Apr 2018 00:35:28 +0200 Subject: [PATCH] Improve section pages --- layouts/_default/section.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 1da8370..0b88d4f 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,10 +1,10 @@ {{ partial "header.html" . }} -{{ with .Content }} - {{- . -}} -{{ end }} - -{{ if eq (len .Content) 0 }} +{{ if ne (len .Content) 0 }} +
+ {{ .Content }} +
+{{ else }}
{{ range sort .Paginator.Pages }} @@ -33,5 +33,3 @@ {{ end }} {{ partial "footer.html" . }} - -