From 0ce8744897b9aa13ea568a6985da9570e4aca90b Mon Sep 17 00:00:00 2001
From: Joris
Date: Sun, 2 Feb 2020 13:53:54 +0100
Subject: Use zola generator
- Use CSS instead of Haskell with Clay
- Use TypeScript instead of PureScript
---
templates/index.html | 77 ++++++++++++++++++++++++++++++++++++++++++----
templates/page.html | 15 +++++++++
templates/recipe-list.html | 39 -----------------------
templates/recipe.html | 16 ----------
templates/section.html | 4 +++
5 files changed, 90 insertions(+), 61 deletions(-)
create mode 100644 templates/page.html
delete mode 100644 templates/recipe-list.html
delete mode 100644 templates/recipe.html
create mode 100644 templates/section.html
(limited to 'templates')
diff --git a/templates/index.html b/templates/index.html
index e6faafd..74bf36f 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,15 +1,80 @@
+
- $title$
+ Recettes
-
+
-
-
- $body$
-
+
+
+
+
+
+
+ {% block content %}
+
+ Plats
+
+
+ {% set section = get_section(path = "plats/_index.md") %}
+ {% for page in section.pages | sort(attribute = "title") %}
+ -
+
+ {{ page.title }}
+
+
+ {% endfor %}
+
+
+ Desserts
+
+ Hypoglucidiques
+
+
+ {% set section = get_section(path = "desserts/hypoglucidique/_index.md") %}
+ {% for page in section.pages | sort(attribute = "title") %}
+ -
+
+ {{ page.title }}
+
+
+ {% endfor %}
+
+
+ Hyperglucidiques
+
+
+ {% set section = get_section(path = "desserts/hyperglucidique/_index.md") %}
+ {% for page in section.pages | sort(attribute = "title") %}
+ -
+
+ {{ page.title }}
+
+
+ {% endfor %}
+
+
+ Nettoyage
+
+
+ {% set section = get_section(path = "nettoyage/_index.md") %}
+ {% for page in section.pages | sort(attribute = "title") %}
+ -
+
+ {{ page.title }}
+
+
+ {% endfor %}
+
+
+ {% endblock content %}
+
+
+
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..370eaf0
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,15 @@
+{% extends "index.html" %}
+
+{% block content %}
+
+
+ ← Retour à l’accueil
+
+
+
+ {{ page.content | safe }}
+
+
+
+
+{% endblock content %}
diff --git a/templates/recipe-list.html b/templates/recipe-list.html
deleted file mode 100644
index 64ae045..0000000
--- a/templates/recipe-list.html
+++ /dev/null
@@ -1,39 +0,0 @@
-Plats
-
-
- $for(mainDishes)$
- -
- $title$
-
- $endfor$
-
-
-Desserts hypoglucidiques
-
-
- $for(lowCarbDesserts)$
- -
- $title$
-
- $endfor$
-
-
-Desserts hyperglucidiques
-
-
- $for(highCarbDesserts)$
- -
- $title$
-
- $endfor$
-
-
-Nettoyage
-
-
- $for(cleaningRecipes)$
- -
- $title$
-
- $endfor$
-
diff --git a/templates/recipe.html b/templates/recipe.html
deleted file mode 100644
index 6585f33..0000000
--- a/templates/recipe.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- $title$
-
-
-
-
-
- ⭠ Retour
- $body$
-
-
-
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..fe1da7f
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,4 @@
+{% extends "index.html" %}
+
+{% block content %}
+{% endblock content %}
--
cgit v1.2.3