Browse Source

Remove superfluous, nested sections

master
Hannes Körber 4 weeks ago
parent
commit
fa83c358a9
  1. 16
      layouts/_default/list.html
  2. 4
      layouts/_default/single.html

16
layouts/_default/list.html

@ -1,12 +1,10 @@
{{ define "content" }}
<div class="section">
{{ if isset . "Title" }}
<div class="content">
<h1 class="title">{{- title .Title -}}</h1>
</div>
{{ end }}
{{- .Content -}}
{{- partial "pagelist-default.html" . -}}
{{ if isset . "Title" }}
<div class="content">
<h1 class="title">{{- title .Title -}}</h1>
</div>
{{ end }}
{{- .Content -}}
{{- partial "pagelist-default.html" . -}}
{{ end }}

4
layouts/_default/single.html

@ -1,5 +1,3 @@
{{ define "content" }}
<div class="section">
{{- .Content -}}
</div>
{{- .Content -}}
{{ end }}
Loading…
Cancel
Save