More backwards compatibility

This commit is contained in:
Nikolay Yakimov 2017-03-14 02:43:12 +03:00
parent e24942a918
commit 38301a171f
No known key found for this signature in database
GPG key ID: 8E9303568F9B9650

View file

@ -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" . }}