diff --git a/dev-data/images/KingArthurSourdough.webp b/dev-data/images/KingArthurSourdough.webp new file mode 100644 index 0000000..45097ec Binary files /dev/null and b/dev-data/images/KingArthurSourdough.webp differ diff --git a/dev-data/images/Sourdough.webp b/dev-data/images/Sourdough.webp new file mode 100644 index 0000000..8b29d53 Binary files /dev/null and b/dev-data/images/Sourdough.webp differ diff --git a/dev-data/recipes/KingArthurSourdough.md b/dev-data/recipes/KingArthurSourdough.md new file mode 100644 index 0000000..d4e6bf6 --- /dev/null +++ b/dev-data/recipes/KingArthurSourdough.md @@ -0,0 +1,21 @@ +--- +title: Naturally Leavened Sourdough Bread +slug: naturally-leavened-sourdough-bread +isPublic: true +mainImage: + src: KingArthurSourdough.webp + title: Sourdough Bread + alt: Sourdough bread. + caption: Sourdough bread. + isPublic: true +--- +Adapted from [King Arthur Flour](https://www.kingarthurbaking.com/recipes/naturally-leavened-sourdough-bread-recipe). + +## Ingredients +- 225g starter +- 350g bread flour +- 1 1/4 tsp. table salt +- 200g water + +## Instructions +The normal bread making instructions. \ No newline at end of file diff --git a/dev-data/recipes/Obazda.md b/dev-data/recipes/Obazda.md index 6403383..c64f3c8 100644 --- a/dev-data/recipes/Obazda.md +++ b/dev-data/recipes/Obazda.md @@ -3,7 +3,7 @@ title: German (Bavarian) Obazda slug: obazda isPublic: true mainImage: - src: images/Obazda.jpg + src: Obazda.jpg title: Obazda alt: Obazda. caption: German Obazda. diff --git a/dev-data/recipes/Sourdough.md b/dev-data/recipes/Sourdough.md new file mode 100644 index 0000000..323cee6 --- /dev/null +++ b/dev-data/recipes/Sourdough.md @@ -0,0 +1,24 @@ +--- +title: Sourdough Bread +slug: sourdough-bread +isPublic: true +mainImage: + src: Sourdough.webp + title: Sourdough Bread + alt: Sourdough bread. + caption: Sourdough bread. + isPublic: true +--- +Originally by [The Clever Carrot](https://www.theclevercarrot.com/2014/01/sourdough-bread-a-beginners-guide/). + +## Ingredients +- 150g active, bubbly (fed) starter +- 250g warm water +- 25g olive oil +- 500g bread flour +- 10g fine sea salt + +## Instructions +Mix wet ingredients, then add salt, then add flour. Mix well. Knead until smooth +but still slightly tacky. Let rise for at least two hours or until doubled, perhaps +as long as eight hours. Bake for about 45 minutes at 400 degrees Fahrenheit. \ No newline at end of file diff --git a/src/main/java/app/mealsmadeeasy/api/DevConfiguration.java b/src/main/java/app/mealsmadeeasy/api/DevConfiguration.java index d4a31ac..43d39d9 100644 --- a/src/main/java/app/mealsmadeeasy/api/DevConfiguration.java +++ b/src/main/java/app/mealsmadeeasy/api/DevConfiguration.java @@ -87,7 +87,7 @@ public class DevConfiguration { imageCreateSpec.setCaption(frontMatter.mainImage.caption); imageCreateSpec.setPublic(frontMatter.mainImage.isPublic); final Path givenPath = Path.of(frontMatter.mainImage.src); - final Path resolvedPath = Path.of("dev-data").resolve(givenPath); + final Path resolvedPath = Path.of("dev-data", "images").resolve(givenPath); final Image mainImage; try (final InputStream inputStream = new FileInputStream(resolvedPath.toFile())) { final long size = Files.size(resolvedPath);