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