]> OzVa Git service - bread/commitdiff
Added homepage index template
authorMax Value <greenwoodw50@gmail.com>
Mon, 12 May 2025 19:45:08 +0000 (20:45 +0100)
committerMax Value <greenwoodw50@gmail.com>
Mon, 12 May 2025 19:45:08 +0000 (20:45 +0100)
.gitignore
templates/index.html [new file with mode: 0644]

index 596f14d7c1eea2834d6da562ad69ce3d068cd9e6..d1c201314c82f309468e49481c5173291264b74d 100644 (file)
@@ -1,3 +1,3 @@
 build/*
 recipes/*
-index.html
+/index.html
diff --git a/templates/index.html b/templates/index.html
new file mode 100644 (file)
index 0000000..f1a142f
--- /dev/null
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="">
+       <head>
+               <meta charset="utf-8">
+               <link rel="stylesheet" href="style.css">
+               <title>Bread</title>
+       </head>
+       <body>
+               <main>
+               <h1>Bread</h1>
+               <p>
+                       Collection of recipes with <a href="pages/percentage.html">bakers percentage</a> and example weights. Recipes are stored in TOML format and periodically compiled to this website and the accompanying printouts.
+               </p>
+               <h2>Recipes</h2>
+               <h3>All recipes</h3>
+               <ul>
+                       {% for recipe in recipes %}
+                               <li><a href="recipes/{{ recipe.recipe.html }}">{{ recipe.recipe.information.title }}</a></li>
+                       {% endfor %}
+               </ul>
+               <h3>Keywords</h3>
+               {% for word, list in keywords.items() %}
+                       <h4>{{ word }}</h4>
+                       <ul>
+                       {% for item in list %}
+                               <li><a href="recipes/{{ item.1 }}">{{ item.0 }}</a></li>
+                       {% endfor %}
+                       </ul>
+               {% endfor %}
+               <p>Last compiled at <a href="https://git.ozva.co.uk/?p=bread;a=commit;h=HEAD">{{ time }}</a></p>
+               </main>
+       </body>
+</html>