www.duckland.org/themes/casper3/layouts/index.html
2021-04-04 22:38:49 -05:00

36 lines
No EOL
1.2 KiB
HTML

{{ define "body_class" }} home-template {{ end }}
{{ define "main" }}
<header class="site-home-header">
{{ .Scratch.Set "background" .Params.featured_image }}
{{- partial "header-background.html" . -}}
<div class="inner">
{{- partial "site-nav.html" . -}}
<div class="site-header-content">
<h1 class="site-title">
{{ if $.Site.Params.logo }}
<img class="site-logo" src="{{ $.Site.Params.logo }}" alt="{{ .Site.Title }}" />
{{ else }}
{{ $.Site.Title }}
{{ end }}
</h1>
<h2 class="site-description">{{ $.Site.Params.description }}</h2>
</div>
</div>
</div>
</header>
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $index, $element := $pages }}
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
{{ end }}
</div>
</div>
</main>
{{ end }}