feat: added amount and cooking time to recipes
This commit is contained in:
parent
8705f8cdee
commit
623893002c
3 changed files with 18 additions and 0 deletions
|
|
@ -8,6 +8,12 @@ layout: base.njk
|
||||||
<span class="draft-badge">Draft</span>
|
<span class="draft-badge">Draft</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="recipe-version">Version {{ recipeVersion }}</p>
|
<p class="recipe-version">Version {{ recipeVersion }}</p>
|
||||||
|
{% if amount %}
|
||||||
|
<p class="recipe-amount">Amount: {{ amount }}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if cookingTime %}
|
||||||
|
<p class="recipe-cooking-time">Cooking Time: {{ cookingTime }}</p>
|
||||||
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="recipe-content">
|
<div class="recipe-content">
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,12 @@ description: Welcome to my website! I write about tech, politics, food, and hobb
|
||||||
{% 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 %}
|
||||||
|
<p class="recipe-amount">Amount: {{ recipe.data.newest.data.amount }}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if recipe.data.newest.data.cookingTime %}
|
||||||
|
<p class="recipe-cooking-time">Cooking Time: {{ recipe.data.newest.data.cookingTime }}</p>
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,12 @@ permalink: /recipes/
|
||||||
{% 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 %}
|
||||||
|
<p class="recipe-amount">Amount: {{ recipeData.newest.data.amount }}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if recipeData.newest.data.cookingTime %}
|
||||||
|
<p class="recipe-cooking-time">Cooking Time: {{ recipeData.newest.data.cookingTime }}</p>
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue