diff options
author | Rogier van der Geer <rogiervandergeer@godatadriven.com> | 2020-06-04 12:47:23 +0300 |
---|---|---|
committer | Rogier van der Geer <rogiervandergeer@godatadriven.com> | 2020-06-04 12:47:23 +0300 |
commit | 8fe90ce8393445e1786b98aae3844bde5c5fd3ac (patch) | |
tree | eb4a24c03ae65a8a8b1a905e356aebd36f57b82b | |
parent | 49571df43f716a322433fabe65a4edf2db6498fe (diff) |
Add yield and times
-rw-r--r-- | layouts/recipes/single.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html index d09e5cc..5b0778f 100644 --- a/layouts/recipes/single.html +++ b/layouts/recipes/single.html @@ -27,6 +27,24 @@ <div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div> </div> + <div class="clearfix mt3"> + {{ with .Params.yield }} + <div class="sm-col sm-col-2"> + <h4 class="blue mt0 mb2 xs-center">Yields: {{ . }}</h4> + </div> + {{ end }} + {{ with .Params.prepTime }} + <div class="sm-col sm-col-2"> + <h4 class="blue mt0 mb2 xs-center">Preparation time: {{ . }}</h4> + </div> + {{ end }} + {{ with .Params.cookTime }} + <div class="sm-col sm-col-2"> + <h4 class="blue mt0 mb2 xs-center">Cooking time: {{ . }}</h4> + </div> + {{ end }} + </div> + <!-- call up recipe and directions --> <div class="clearfix mt3"> <div class="sm-col sm-col-6 lg-col-6 recipeItems"> |