aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 74bf36f28dca30f29f55f31896f89637f30aed63 (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
<!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">
      Recettes
    </header>

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

        <h1>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>Desserts</h1>

        <h2>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>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>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>