kobel/layouts/_default/list.html

23 lines
No EOL
666 B
HTML

{{ define "main" }}
{{ if .Content }}
<!-- TODO -->
<div class="content">
{{ with .Title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}
{{.Content}}
</div>
{{ else }}
<div class="header-blocker"></div>
{{ end }}
{{- range $index, $page := .Pages }}
{{ $odd := mod $index 2 }}
{{ $id := .Params.id | default $page.File.ContentBaseName }}
{{ if eq .Params.type "hero" }}
{{- partial "hero.html" (dict "id" $id "hero" .Params "content" .Content "odd" $odd) -}}
{{ end}}
{{ end }}
{{ end }}