From ddb4a94dd72c250bd8c2090378ef9a4fff404787 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 12 Feb 2023 19:40:49 +0100 Subject: Move footer to own template file --- data/templates/footer.html | 4 ++++ data/templates/index.html | 6 ++---- data/templates/recipe.html | 6 ++---- data/templates/recipe_edit.html | 1 + 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 data/templates/footer.html diff --git a/data/templates/footer.html b/data/templates/footer.html new file mode 100644 index 0000000..1b5bf15 --- /dev/null +++ b/data/templates/footer.html @@ -0,0 +1,4 @@ + diff --git a/data/templates/index.html b/data/templates/index.html index 98eb9da..86a9089 100644 --- a/data/templates/index.html +++ b/data/templates/index.html @@ -19,10 +19,8 @@
  • {{.Title}}
  • {{end}} - + {{ template "footer.html" }} + diff --git a/data/templates/recipe.html b/data/templates/recipe.html index e8b1565..95aefa5 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -20,10 +20,8 @@ {{.RenderedDescriptionMarkdown}} - + {{ template "footer.html" }} + diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index 954bc39..64e0790 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -20,6 +20,7 @@ + {{ template "footer.html" }} -- cgit v1.2.3-70-g09d2