From 6b460faee01434bdcf0bf0069d8b02a3cb5ea724 Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Tue, 23 Aug 2022 21:12:45 +0900 Subject: [PATCH] Add new frontmatter and taxonomy --- archetypes/reviews.md | 4 ++++ config.toml | 4 ++++ content/reviews/the-french-dispatch.md | 7 ++++++- layouts/_default/summary.html | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/archetypes/reviews.md b/archetypes/reviews.md index afd37ba..c872645 100644 --- a/archetypes/reviews.md +++ b/archetypes/reviews.md @@ -4,6 +4,10 @@ date: {{ .Date }} draft: true rating: 5 imdb: 0.0 +summary: Short summary (70 characters or so) +quick_look: Longer blurb about the movie for th top section image: https://m.media-amazon.com/images/M/MV5BNmQxZTNiODYtNzBhYy00MzVlLWJlN2UtNTc4YWZjMDIwMmEzXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_SX300.jpg +genres: + - Movie --- diff --git a/config.toml b/config.toml index f50363c..babf01c 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,7 @@ baseURL = 'https://caalden.github.io/film/' languageCode = 'en-us' title = 'CaAlden: Films' +[taxonomies] + category = 'categories' + genre = 'genres' + tag = 'tags' diff --git a/content/reviews/the-french-dispatch.md b/content/reviews/the-french-dispatch.md index d4d8bcb..669dc28 100644 --- a/content/reviews/the-french-dispatch.md +++ b/content/reviews/the-french-dispatch.md @@ -5,7 +5,12 @@ draft: false rating: 5 imdb: 7.2 image: https://m.media-amazon.com/images/M/MV5BNmQxZTNiODYtNzBhYy00MzVlLWJlN2UtNTc4YWZjMDIwMmEzXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_SX300.jpg -summary: "A new film from Wes Anderson styled after a magazine" +summary: A new film from Wes Anderson styled after a magazine +quick_look: Charming and highly stylized, this movie has immediately joined my shelf of favorites. Great if you are a Wes Anderson fan or just someone looking for absurdist humor. +genres: + - Comedy + - Drama + - Romance --- ## Synopsis diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 53c222d..716cfd5 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -10,7 +10,7 @@
- {{ .Summary }} + {{ .Summary | truncate 70 "..." }}