aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: e107a7b691779346afbc7da0a6d5c5bfa37e6cc3 (plain)
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
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="fr">

  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Recettes</title>
    <link rel="stylesheet" href="/main.css" />
    <link rel="icon" href="/icon.png">
  </head>

  <body class="g-Page">

    <header class="g-Page__Header">
      {{ page.title | default (value = "Recettes") }}
    </header>

    <main class="g-Page__Content">
      {% block content %}

        <h1 class="g-Recipe__Title">Plats</h1>

        <ul class="g-Page__Recipes">
          {% set section = get_section(path = "plats/_index.md") %}
          {% for page in section.pages | sort(attribute = "title") %}
            <li class="g-Page__Recipe">
              <a class="g-Link" href="{{ page.permalink }}">
                {{ page.title }}
              </a>
            </li>
          {% endfor %}
        </ul>

        <h1 class="g-Recipe__Title">Desserts</h1>

        <h2 class="g-Recipe__SubTitle">Hypoglucidiques</h2>

        <ul class="g-Page__Recipes">
          {% set section = get_section(path = "desserts/hypoglucidique/_index.md") %}
          {% for page in section.pages | sort(attribute = "title") %}
            <li class="g-Page__Recipe">
              <a class="g-Link" href="{{ page.permalink }}">
                {{ page.title }}
              </a>
            </li>
          {% endfor %}
        </ul>

        <h2 class="g-Recipe__SubTitle">Hyperglucidiques</h2>

        <ul class="g-Page__Recipes">
          {% set section = get_section(path = "desserts/hyperglucidique/_index.md") %}
          {% for page in section.pages | sort(attribute = "title") %}
            <li class="g-Page__Recipe">
              <a class="g-Link" href="{{ page.permalink }}">
                {{ page.title }}
              </a>
            </li>
          {% endfor %}
        </ul>

        <h1 class="g-Recipe__Title">Pains</h1>

        <ul class="g-Page__Recipes">
          {% set section = get_section(path = "pains/_index.md") %}
          {% for page in section.pages | sort(attribute = "title") %}
            <li class="g-Page__Recipe">
              <a class="g-Link" href="{{ page.permalink }}">
                {{ page.title }}
              </a>
            </li>
          {% endfor %}
        </ul>

        <h1 class="g-Recipe__Title">Nettoyage</h1>

        <ul class="g-Page__Recipes">
          {% set section = get_section(path = "nettoyage/_index.md") %}
          {% for page in section.pages | sort(attribute = "title") %}
            <li class="g-Page__Recipe">
              <a class="g-Link" href="{{ page.permalink }}">
                {{ page.title }}
              </a>
            </li>
          {% endfor %}
        </ul>

      {% endblock content %}
    </main>

  </body>

</html>