feat: add list template with category tabs and card filtering
This commit is contained in:
parent
a893137976
commit
8cff71e0ce
@ -6,8 +6,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="cards" id="cards">
|
<div class="cards" id="cards">
|
||||||
{{ range .Pages }}
|
{{ $currentCat := .Title }}
|
||||||
{{ if .Params.category }}
|
{{ range .Site.RegularPages }}
|
||||||
|
{{ if and (.Params.category) (or (eq $currentCat "All") (eq .Params.category $currentCat)) }}
|
||||||
{{ partial "card.html" . }}
|
{{ partial "card.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user