From 38301a171faf60e49597534710c4223a6dcbcfcc Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Tue, 14 Mar 2017 02:43:12 +0300 Subject: [PATCH] More backwards compatibility --- layouts/_default/list.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3902b7741a..e76566ec64 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,9 @@ -{{ if .Content }} {{ partial "header.html" . }} +{{ if .Content }} {{ .Content }} -{{ partial "footer.html" . }} +{{ else }} +{{ with (index (index .Site.Sections .Section) 0) }} +{{ .Page.Content }} {{ end }} +{{ end }} +{{ partial "footer.html" . }}