ref: 35336a53cbd29d9ba1bc0b1581f7fa6030329f23 jrgnsn.net/_layouts/recipe.html -rw-r--r-- 2.3 KiB View raw
                                                                                
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
<!DOCTYPE html>
<html>
<head>
    <!-- Document Settings -->
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <!-- Page Meta -->
    <title>{{ page.title }} - Recipes on {{ site.title }}</title>
    <meta name="description=" content="True" />
    <link rel="icon" type="image/png" href="/avatar.png" />

    <!-- Stylesheets -->
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    {% if page.layout == 'recipe' %}
    <link rel="stylesheet" type="text/css" href="/css/recipe.css" />
    {% endif %}
</head>

<body>
    <div class="container">
        <header>
            <h1 class="page-title">
                {% if page.title %}
                {{ page.title }}
                {% else %}
                {{ site.title }}
                {% endif %}
            </h1>
            <navigation><div class="navigation">
                <a href="/recipes">Back to Recipes</a>
            </div></navigation>
        </header>

        <div class="recipe-container">
            <div class="ingredients">
                <h2>Ingredients</h2>
                    <div class="ingredient-list"> 
                    {% for keys in page.ingredients %}
                        {% for key in keys %}
                        {% if page.ingredients.size > 1 %}
                        <h3>{{ key.first }}</h3>
                        {% endif %}
                            {% for ing in key %}
                            {% for in in ing %}
                                <span class="qty">{{in.qty }}</span>
                                <span class="name">{{in.name}}</span>
                            {% endfor %}
                            {% endfor %}
                        {% endfor %}
                    {% endfor %}
                </div>
            </div>

            <div class="directions">
                <h2>Instructions</h2>
                {{ content }}
            </div>
        </div>
        {% if page.source %}
        <div class="recipe-source">
            {% if page.sourceURL %}
            Source: <a href="{{ page.sourceURL }}" target="_blank">{{ page.source }}</a>
            {% else %}
            Source: {{ page.source }}
            {% endif %}
        </div>
        {% endif %}
    </div>
</div>
</div>
</body>
</html>