Add a list page for favorites

This commit is contained in:
Campbell Alden 2022-10-16 17:23:19 +09:00
parent 389bca74f3
commit fb2336ab03
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{{ define "main" }}
<div class="core-content">
<section class="home-page-header">
<header class="stack s1">
<h1>{{ .Title }}</h1>
{{- .Content -}}
</header>
<div class="cards">
{{ range (where .Site.Pages "Section" "reviews") }}
{{ range (where .Pages ".Params.favorite" "==" true) }}
{{- .Render "summary" -}}
{{ end }}
{{ end }}
</div>
</section>
</div>
{{end}}