26 lines
No EOL
693 B
HTML
26 lines
No EOL
693 B
HTML
{{ define "main" }}
|
|
{{ if .Title }}
|
|
<!-- TODO -->
|
|
<div class="content">
|
|
<article>
|
|
<div class="title">
|
|
<h1>{{ .Title }}</h1>
|
|
<div class="divider"></div>
|
|
</div>
|
|
{{.Content}}
|
|
</article>
|
|
<div class="list">
|
|
{{ range .Pages }}
|
|
{{ .Render "summary" }}
|
|
{{ end }}
|
|
</div>
|
|
</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 }} |