Add a list page for favorites
This commit is contained in:
parent
389bca74f3
commit
fb2336ab03
2 changed files with 27 additions and 0 deletions
17
layouts/lists/favorites.html
Normal file
17
layouts/lists/favorites.html
Normal 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}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue