This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe-pages.liquid
85 lines (76 loc) · 2.08 KB
/
recipe-pages.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
pagination:
data: recipesContentful
size: 1
alias: recipe
permalink: "recipe/{{ recipe.title | slug }}/"
tags: "recipe"
layout: recipe.liquid
renderData:
title: "{{ recipe.title }}"
subTitle: "{{ recipe.shortDescription }}"
thumbnail: "{{ recipe.thumbnail.fields.file.url}}?q=100"
webTitle: "Festa di Famiglia"
webTitleSlug: "Festa-di-Famiglia"
---
</br>
{% if recipe.chef != null and recipe.chef != "" %}
<div class="box">
<b>Chef:</b> {{ recipe.chef }}
</div>
{% endif %}
<div class="box">
<b>Difficulty:</b> {% assign handle = recipe.level %}
{% case handle %}
{% when 1 %}
<i class="fas fa-star"></i> <i class="far fa-star"></i> <i class="far fa-star"></i>
{% when 2 %}
<i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="far fa-star"></i>
{% when 3 %}
<i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i>
{% endcase %}
</div>
<div class="box">
<b>Categories:</b>
{{ recipe.categories | join: ' , ' }}
</div>
<div class="box">
<b>Cooking Time:</b> {{ recipe.cookTime }} </br></br> <b>Prep Time:</b> {{ recipe.prepTime }}
</div>
<div class="box">
<b>Ingredients:</b>
<div class="content is-normal">
<ul>
{%- for ingredients in recipe.ingredients -%}
<li>{{ingredients}}</li>
{%- endfor -%}
</ul>
</div>
</div>
<div class="box">
<b>servings:</b> ≈{{ recipe.servings }}
</div>
<div class="box">
<b>Instructions:</b>
<div class="content is-normal">
<ul>
{%- for instructions in recipe.instructions -%}
<li>{{instructions}}</li>
{%- endfor -%}
</ul>
</div>
</div>
{% if recipe.chefsComments != null and recipe.chefsComments != "" %}
<div class="box">
<div class="content is-normal">
<b>Chef's comments:</b> {{ recipe.chefsComments }}
</div>
</div>
{% endif %}
{% if recipe.bio != null and recipe.bio != "" %}
<div class="box">
<div class="content is-normal">
<b>Recipe bio:</b> {{ recipe.bio }}
</div>
</div>
{% endif %}