2022-01-08 21:41:33 +01:00
|
|
|
{{ define "main" }}
|
2022-01-08 22:59:34 +01:00
|
|
|
<h1>{{.Title}}</h1>
|
|
|
|
<div class="cards">
|
2022-01-08 21:41:33 +01:00
|
|
|
{{ $pages := .Pages }}
|
|
|
|
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
|
|
|
|
{{ range (where $pages "Section" "!=" "") }}
|
2022-01-08 22:59:34 +01:00
|
|
|
<div class="card">
|
|
|
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
2022-01-08 21:41:33 +01:00
|
|
|
<p>{{ safeHTML .Summary }}</p>
|
2022-01-08 22:59:34 +01:00
|
|
|
</div>
|
2022-01-08 21:41:33 +01:00
|
|
|
{{ end }}
|
2022-01-08 22:59:34 +01:00
|
|
|
</div>
|
2022-01-08 21:41:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|