diff --git a/src/content/food/_food.md b/src/content/food/_food.md index 76fcb57..cf07530 100644 --- a/src/content/food/_food.md +++ b/src/content/food/_food.md @@ -1,11 +1,11 @@ --- title: Food meta_title: Food -author: Reed Nelson -draft: true description: recipe. -cover: "@assets/food/.jpg" +draft: true +cover: "@assets/food/.jpg" +author: Reed Nelson prep_time: 0 servings: 0 diff --git a/src/content/food/bruchetta.md b/src/content/food/bruchetta.md new file mode 100644 index 0000000..cc15d10 --- /dev/null +++ b/src/content/food/bruchetta.md @@ -0,0 +1,23 @@ +--- +title: Bruchetta +meta_title: Bruchetta +description: Bruchetta recipe. +draft: true + +cover: "@assets/food/placeholder.jpg" +author: Reed Nelson +prep_time: 30 +servings: 3 + +ingredients: + list: + - Ingredient + qty: + - qty + +instructions: + - Step + +notes: + - Note +--- diff --git a/src/content/food/fish-tacos.md b/src/content/food/fish-tacos.md new file mode 100644 index 0000000..b2a7e15 --- /dev/null +++ b/src/content/food/fish-tacos.md @@ -0,0 +1,23 @@ +--- +title: Fish Tacos +meta_title: Fish Tacos +description: Fish Taco recipe. +draft: true + +cover: "@assets/food/placeholder.jpg" +author: Ben Cartford +prep_time: 60 +servings: 4 + +ingredients: + list: + - Ingredient + qty: + - qty + +instructions: + - Step + +notes: + - Note +--- diff --git a/src/content/food/pad-thai.md b/src/content/food/pad-thai.md index cb81a73..3fb9047 100644 --- a/src/content/food/pad-thai.md +++ b/src/content/food/pad-thai.md @@ -1,11 +1,11 @@ --- title: Pad Thai meta_title: Pad Thai -author: Reed Nelson draft: false description: Pad Thai recipe. -cover: "@assets/food/pad-thai.jpg" +cover: "@assets/food/pad-thai.jpg" +author: Reed Nelson prep_time: 45 servings: 4 diff --git a/src/layouts/FoodSingle.astro b/src/layouts/FoodSingle.astro index 067b66e..0ef9539 100644 --- a/src/layouts/FoodSingle.astro +++ b/src/layouts/FoodSingle.astro @@ -2,6 +2,13 @@ import Share from "@/components/Share.astro"; import config from "@/config/config.json"; import { Image } from "astro:assets"; +import { humanize, markdownify } from "@/lib/utils/textConverter"; + +import { + FaRegClock, + FaRegUserCircle, + FaUtensils, +} from "react-icons/fa/index.js"; interface Recipe { ingredients: { @@ -25,6 +32,7 @@ const { ingredients, instructions, notes }: Recipe = post.data;

+
{ cover && ( @@ -39,6 +47,33 @@ const { ingredients, instructions, notes }: Recipe = post.data; ) }
+ +
+
+
+ +
+ + {humanize(author)} +
+ +
+ + {prep_time + " minutes"} +
+ +
+ + {servings + " servings"} +
+ +
+
+
+
+
+
+
@@ -48,13 +83,15 @@ const { ingredients, instructions, notes }: Recipe = post.data;

- {ingredients.list.map((it: string, index: number) => ( -
-
-
-
-
- ))} + { + ingredients.list.map((it: string, index: number) => ( +
+
+
+
+
+ )) + }
@@ -83,25 +120,27 @@ const { ingredients, instructions, notes }: Recipe = post.data; -
-
-
-
-

-
- {notes.map((it: string, index: number) => ( -
-
- {it} + { notes && notes.length > 0 && ( +
+
+
+
+

+
+ {notes.map((it: string, index: number) => ( +
+
+ {it} +
+
-
-
- ))} + ))} +

-
-

+ + )}
diff --git a/src/pages/food/index.astro b/src/pages/food/index.astro index 93f58f1..d1075e9 100644 --- a/src/pages/food/index.astro +++ b/src/pages/food/index.astro @@ -23,25 +23,21 @@ const currentPosts = posts.slice(0, config.settings.food_pagination);
-
- -
-
- { - currentPosts.map((post) => ( -
- -
- )) - } -
- -
+ +
+ { + currentPosts.map((post) => ( +
+ +
+ )) + }
+
diff --git a/src/pages/puzzles/index.astro b/src/pages/puzzles/index.astro index 1d1204d..709bbb4 100644 --- a/src/pages/puzzles/index.astro +++ b/src/pages/puzzles/index.astro @@ -24,7 +24,7 @@ const posts = await getSinglePage(puzzle_folder); { posts.map((post) => ( // Puzzle Card -
+