summaryrefslogtreecommitdiff
path: root/layouts/_partials/term/term-books.html
blob: 3f7e82ea0898b59d0fc8cbb2767835371e450c24 (plain)
1
2
3
4
5
6
7
8
9
{{ $books := where .Pages "Section" "eq" "library" }}
{{ if gt (len $books) 0 }}
<h2>{{ T "termPage.books" }}</h2>
<div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4">
    {{ range $books }}
    {{ partial "components/book" (dict "ctx" .) }}
    {{ end }}
</div>
{{ end }}