Skip to content

Commit

Permalink
✨ add images to recipe pages
Browse files Browse the repository at this point in the history
  • Loading branch information
diepoe committed Nov 5, 2021
1 parent ff8b285 commit a6029ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const {content} = Astro.props
---

<BaseLayout title="{content.title}" description="{content.description}">
<img
src="{content.img}"
alt="{content.title}"
class="mx-auto mb-4 rounded max-h-64 lg:mb-6 xl:mb-8"
/>
<div class="prose md:prose-lg xl:prose-xl dark:prose-dark font-kyivsans">
<slot />
</div>
Expand Down
1 change: 1 addition & 0 deletions src/pages/rezepte/der-erfrischer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: ../../layouts/MarkdownLayout.astro
title: Der Erfrischer
description: "Fluffy Rezept: Der Erfrischer"
img: "/images/rezepte/der-erfrischer.jpg"
---

# Der Erfrischer
Expand Down
1 change: 1 addition & 0 deletions src/pages/rezepte/der-magische-trunk.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: ../../layouts/MarkdownLayout.astro
title: Der magische Trunk
description: "Fluffy Rezept: Der magische Trunk"
img: "/images/rezepte/der-magische-trunk.jpg"
---

# Der magische Trunk
Expand Down
1 change: 1 addition & 0 deletions src/pages/rezepte/der-schnelle-laeufer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: ../../layouts/MarkdownLayout.astro
title: Der schnelle Läufer
description: "Fluffy Rezept: Der schnelle Läufer"
img: "/images/rezepte/der-schnelle-laeufer.jpg"
---

# Der schnelle Läufer
Expand Down

1 comment on commit a6029ea

@vercel
Copy link

@vercel vercel bot commented on a6029ea Nov 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.