Improve section pages

master
Marc Riera Irigoyen 2018-04-09 00:35:28 +02:00
parent c973d4c930
commit a01c1642f0
1 changed files with 5 additions and 7 deletions

View File

@ -1,10 +1,10 @@
{{ partial "header.html" . }}
{{ with .Content }}
{{- . -}}
{{ end }}
{{ if eq (len .Content) 0 }}
{{ if ne (len .Content) 0 }}
<div id="content">
{{ .Content }}
</div>
{{ else }}
<div id="content">
{{ range sort .Paginator.Pages }}
@ -33,5 +33,3 @@
{{ end }}
{{ partial "footer.html" . }}