31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
{{ define "banner" }}
|
|
{{ $image := "" }}
|
|
{{ if .Resources.GetMatch "banner*" }}
|
|
{{ $image = .Resources.GetMatch "banner*" }}
|
|
{{ end }}
|
|
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
|
{{ end }}
|
|
|
|
{{ define "intro" }}
|
|
{{ if ne .Content "" }}
|
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<article>
|
|
<div>
|
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
|
|
{{ range $pages.GroupByDate "2006" }}
|
|
<h3 style="margin-top: 0; padding-top: 0; margin-bottom: 0; padding-bottom: 0;">{{ .Key }}</h3>
|
|
{{ range .Pages.GroupByDate "January" }}
|
|
<h4 style="margin-left: 1em; margin-top: 0; padding-top: 0; margin-bottom: 0; padding-bottom: 0;">{{ .Key }}:</h4>
|
|
{{ range .Pages }}
|
|
<div style="margin-left: 2em;">{{ .Date.Format "02.01.2006" }} <a href="{{ .Permalink }}" class="underline">{{ .Title }}</a></div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
{{ end }}
|