feat: updated recipe cards

This commit is contained in:
Leyla Becker 2026-02-22 11:29:23 -06:00
parent e46d2b8d38
commit 0091e47588
2 changed files with 14 additions and 10 deletions

View file

@ -55,15 +55,17 @@ description: Welcome to my website! I write about tech, politics, food, and hobb
<li>
<a href="/recipe/{{ recipe.slug }}/" class="post-card">
<h2>{{ recipe.data.newest.data.title }}</h2>
<time class="localizable-time" datetime="{{ recipe.data.newest.data.createdAt | isoDateTime }}">{{ recipe.data.newest.data.createdAt | dateTimeFormat }}</time>
{% if recipe.data.newest.data.description %}
<p>{{ recipe.data.newest.data.description }}</p>
{% endif %}
{% if recipe.data.newest.data.amount %}
<p class="recipe-amount">Amount: {{ recipe.data.newest.data.amount }}</p>
{% if recipe.data.newest.data.plantBased %}
<p class="recipe-vegan">Vegan</p>
{% endif %}
{% if recipe.data.newest.data.cookingTime %}
<p class="recipe-cooking-time">Cooking Time: {{ recipe.data.newest.data.cookingTime }}</p>
{% if recipe.data.newest.data.makes %}
<p class="recipe-makes">Makes: {{ recipe.data.newest.data.makes }}</p>
{% endif %}
{% if recipe.data.newest.data.prepTime %}
<p class="recipe-prep-time">Prep Time: {{ recipe.data.newest.data.prepTime }}</p>
{% endif %}
</a>
</li>