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

10
content/favorites.md Normal file
View file

@ -0,0 +1,10 @@
---
title: Favorites
description: A list of my favorite movies
date: 2022-10-16:17:30+09:00
type: lists
layout: favorites
---
This is a list of my favorite films. They are not necessarily the ones that I would recommend to everyone
but they hold a special place for me either as films that I remember fondly from my childhood or because
I just feel that they hold all the qualities that make a movie great to me.

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}}