Skip to content

Commit

Permalink
refactor: Factor servings into serving size, too
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 23, 2023
1 parent 818cb11 commit 088b9db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/recipe-nutrition-facts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
<header class="recipe-plugin-label-header">
<h1 class="recipe-plugin-label-title">Nutrition Facts</h1>
{% if value.servingSize | length %}
<div class="recipe-plugin-detail">Serving Size: {{ value.servingSize }}</div>
<div class="recipe-plugin-detail">Serving
Size: {{ servesValue(value.servingSize, value.serves) }}</div>
{% endif %}
{% if value.serves | length %}
<div class="recipe-plugin-detail">Serves: {{ value.serves }}</div>
Expand Down

0 comments on commit 088b9db

Please sign in to comment.