From 89d402d10e8af9073cdfb2ad967eda16d714371e Mon Sep 17 00:00:00 2001
From: xengineering
Date: Sun, 12 Feb 2023 19:33:49 +0100
Subject: Move section to own template file
This reduces copies of the same HTML code.
---
data/templates/head.html | 9 +++++++++
data/templates/index.html | 10 +---------
data/templates/recipe.html | 10 +---------
data/templates/recipe_edit.html | 10 +---------
4 files changed, 12 insertions(+), 27 deletions(-)
create mode 100644 data/templates/head.html
diff --git a/data/templates/head.html b/data/templates/head.html
new file mode 100644
index 0000000..33f0c6d
--- /dev/null
+++ b/data/templates/head.html
@@ -0,0 +1,9 @@
+
+
+ Recipes
+
+
+
+
+
+
diff --git a/data/templates/index.html b/data/templates/index.html
index 9115d31..98eb9da 100644
--- a/data/templates/index.html
+++ b/data/templates/index.html
@@ -1,17 +1,9 @@
-
-
- Recipes
+ {{ template "head.html" }}
-
-
-
-
-
-
diff --git a/data/templates/recipe.html b/data/templates/recipe.html
index a35cc49..e8b1565 100644
--- a/data/templates/recipe.html
+++ b/data/templates/recipe.html
@@ -1,17 +1,9 @@
-
-
- Recipes
+ {{ template "head.html" }}
-
-
-
-
-
-
{{if ne .UpstreamUrl ""}}
diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html
index b5c9672..954bc39 100644
--- a/data/templates/recipe_edit.html
+++ b/data/templates/recipe_edit.html
@@ -1,17 +1,9 @@
-
-
- Recipes
+ {{ template "head.html" }}
-
-
-
-
-
-
Edit a recipe
--
cgit v1.2.3-70-g09d2