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