diff --git a/_includes/recipe.njk b/_includes/recipe.njk index aab5197..f0a529e 100644 --- a/_includes/recipe.njk +++ b/_includes/recipe.njk @@ -8,6 +8,12 @@ layout: base.njk Draft {% endif %}

Version {{ recipeVersion }}

+ {% if amount %} +

Amount: {{ amount }}

+ {% endif %} + {% if cookingTime %} +

Cooking Time: {{ cookingTime }}

+ {% endif %}
diff --git a/index.njk b/index.njk index 71793b8..b766d44 100644 --- a/index.njk +++ b/index.njk @@ -57,6 +57,12 @@ description: Welcome to my website! I write about tech, politics, food, and hobb {% if recipe.data.newest.data.description %}

{{ recipe.data.newest.data.description }}

{% endif %} + {% if recipe.data.newest.data.amount %} +

Amount: {{ recipe.data.newest.data.amount }}

+ {% endif %} + {% if recipe.data.newest.data.cookingTime %} +

Cooking Time: {{ recipe.data.newest.data.cookingTime }}

+ {% endif %} {% endif %} diff --git a/recipes-index.njk b/recipes-index.njk index b129f8c..cea2fc4 100644 --- a/recipes-index.njk +++ b/recipes-index.njk @@ -24,6 +24,12 @@ permalink: /recipes/ {% if recipeData.newest.data.description %}

{{ recipeData.newest.data.description }}

{% endif %} + {% if recipeData.newest.data.amount %} +

Amount: {{ recipeData.newest.data.amount }}

+ {% endif %} + {% if recipeData.newest.data.cookingTime %} +

Cooking Time: {{ recipeData.newest.data.cookingTime }}

+ {% endif %} {% endif %}