aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoris2020-02-02 16:51:57 +0100
committerJoris2020-02-02 16:51:57 +0100
commitbc97048dfbb05766abf0c04aed593252a3abdc88 (patch)
tree25cea9c393b430fe5ba825547e2cd88a08940498 /templates
parent1bdaf18073d82aa3e243d33f073fca3d69ee451f (diff)
downloadcooking-bc97048dfbb05766abf0c04aed593252a3abdc88.tar.gz
cooking-bc97048dfbb05766abf0c04aed593252a3abdc88.tar.bz2
cooking-bc97048dfbb05766abf0c04aed593252a3abdc88.zip
Show recipe title in each recipe page
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html12
-rw-r--r--templates/page.html4
2 files changed, 9 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html
index 74bf36f..4a420fa 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -12,13 +12,13 @@
<body class="g-Page">
<header class="g-Page__Header">
- Recettes
+ {{ page.title | default (value = "Recettes") }}
</header>
<main class="g-Page__Content">
{% block content %}
- <h1>Plats</h1>
+ <h1 class="g-Recipe__Title">Plats</h1>
<ul class="g-Page__Recipes">
{% set section = get_section(path = "plats/_index.md") %}
@@ -31,9 +31,9 @@
{% endfor %}
</ul>
- <h1>Desserts</h1>
+ <h1 class="g-Recipe__Title">Desserts</h1>
- <h2>Hypoglucidiques</h2>
+ <h2 class="g-Recipe__SubTitle">Hypoglucidiques</h2>
<ul class="g-Page__Recipes">
{% set section = get_section(path = "desserts/hypoglucidique/_index.md") %}
@@ -46,7 +46,7 @@
{% endfor %}
</ul>
- <h2>Hyperglucidiques</h2>
+ <h2 class="g-Recipe__SubTitle">Hyperglucidiques</h2>
<ul class="g-Page__Recipes">
{% set section = get_section(path = "desserts/hyperglucidique/_index.md") %}
@@ -59,7 +59,7 @@
{% endfor %}
</ul>
- <h1>Nettoyage</h1>
+ <h1 class="g-Recipe__Title">Nettoyage</h1>
<ul class="g-Page__Recipes">
{% set section = get_section(path = "nettoyage/_index.md") %}
diff --git a/templates/page.html b/templates/page.html
index 370eaf0..5174a14 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -6,8 +6,10 @@
← Retour à l’accueil
</a>
- <div class="g-Recipe">
+ <div class="g-Recipe__Content">
+
{{ page.content | safe }}
+
</div>
<script src="/main.js"></script>