{{ define "main" }}
{{ partial "header" . }} {{ partial "home/home-nav" . }}

{{ with .Params.icon }} {{ . }} {{ end }} {{ if and (eq .Data.Singular "tag") (not .Params.icon) }}#{{ end }}{{ .Title }}

{{ with .Params.description | markdownify }}

{{ . }}

{{ end }}
{{ $cards := where .Pages "Section" "eq" "cards" }} {{ if gt (len $cards) 0 }}

{{ T "termPage.cards" }}

{{ range $cards }} {{ partial "items/card" (dict "context" . "summary" true) }} {{ end }}
{{ end }} {{ $books := where .Pages "Section" "eq" "library" }} {{ if gt (len $books) 0 }}

{{ T "termPage.books" }}

{{ range $books }} {{ partial "items/book" . }} {{ end }}
{{ end }}
{{ partial "footer.html" . }} {{ end }}