From fb2336ab039cd436897bd725a21a0758d892ae1e Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Sun, 16 Oct 2022 17:23:19 +0900 Subject: [PATCH] Add a list page for favorites --- content/favorites.md | 10 ++++++++++ layouts/lists/favorites.html | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 content/favorites.md create mode 100644 layouts/lists/favorites.html diff --git a/content/favorites.md b/content/favorites.md new file mode 100644 index 0000000..1849dd3 --- /dev/null +++ b/content/favorites.md @@ -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. diff --git a/layouts/lists/favorites.html b/layouts/lists/favorites.html new file mode 100644 index 0000000..dc799a2 --- /dev/null +++ b/layouts/lists/favorites.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+ {{- .Content -}} +
+
+ {{ range (where .Site.Pages "Section" "reviews") }} + {{ range (where .Pages ".Params.favorite" "==" true) }} + {{- .Render "summary" -}} + {{ end }} + {{ end }} +
+
+
+{{end}}