feat: updated recipe cards
This commit is contained in:
parent
e46d2b8d38
commit
0091e47588
2 changed files with 14 additions and 10 deletions
12
index.njk
12
index.njk
|
|
@ -55,15 +55,17 @@ description: Welcome to my website! I write about tech, politics, food, and hobb
|
||||||
<li>
|
<li>
|
||||||
<a href="/recipe/{{ recipe.slug }}/" class="post-card">
|
<a href="/recipe/{{ recipe.slug }}/" class="post-card">
|
||||||
<h2>{{ recipe.data.newest.data.title }}</h2>
|
<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 %}
|
{% if recipe.data.newest.data.description %}
|
||||||
<p>{{ recipe.data.newest.data.description }}</p>
|
<p>{{ recipe.data.newest.data.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if recipe.data.newest.data.amount %}
|
{% if recipe.data.newest.data.plantBased %}
|
||||||
<p class="recipe-amount">Amount: {{ recipe.data.newest.data.amount }}</p>
|
<p class="recipe-vegan">Vegan</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if recipe.data.newest.data.cookingTime %}
|
{% if recipe.data.newest.data.makes %}
|
||||||
<p class="recipe-cooking-time">Cooking Time: {{ recipe.data.newest.data.cookingTime }}</p>
|
<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 %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -21,15 +21,17 @@ permalink: /recipes/
|
||||||
<li>
|
<li>
|
||||||
<a href="/recipe/{{ slug }}/" class="post-card">
|
<a href="/recipe/{{ slug }}/" class="post-card">
|
||||||
<h2>{{ recipeData.newest.data.title }}</h2>
|
<h2>{{ recipeData.newest.data.title }}</h2>
|
||||||
<time class="localizable-time" datetime="{{ recipeData.newest.data.createdAt | isoDateTime }}">{{ recipeData.newest.data.createdAt | dateTimeFormat }}</time>
|
|
||||||
{% if recipeData.newest.data.description %}
|
{% if recipeData.newest.data.description %}
|
||||||
<p>{{ recipeData.newest.data.description }}</p>
|
<p>{{ recipeData.newest.data.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if recipeData.newest.data.amount %}
|
{% if recipeData.newest.data.plantBased %}
|
||||||
<p class="recipe-amount">Amount: {{ recipeData.newest.data.amount }}</p>
|
<p class="recipe-vegan">Vegan</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if recipeData.newest.data.cookingTime %}
|
{% if recipeData.newest.data.makes %}
|
||||||
<p class="recipe-cooking-time">Cooking Time: {{ recipeData.newest.data.cookingTime }}</p>
|
<p class="recipe-makes">Makes: {{ recipeData.newest.data.makes }}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if recipeData.newest.data.prepTime %}
|
||||||
|
<p class="recipe-prep-time">Prep Time: {{ recipeData.newest.data.prepTime }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue