diff options
author | xengineering <me@xengineering.eu> | 2023-02-12 19:40:49 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-02-12 19:40:49 +0100 |
commit | ddb4a94dd72c250bd8c2090378ef9a4fff404787 (patch) | |
tree | cc1e76d919b7f5910fc082e40ac483f1db42a07b | |
parent | 89d402d10e8af9073cdfb2ad967eda16d714371e (diff) | |
download | ceres-ddb4a94dd72c250bd8c2090378ef9a4fff404787.tar ceres-ddb4a94dd72c250bd8c2090378ef9a4fff404787.tar.zst ceres-ddb4a94dd72c250bd8c2090378ef9a4fff404787.zip |
Move footer to own template file
-rw-r--r-- | data/templates/footer.html | 4 | ||||
-rw-r--r-- | data/templates/index.html | 6 | ||||
-rw-r--r-- | data/templates/recipe.html | 6 | ||||
-rw-r--r-- | data/templates/recipe_edit.html | 1 |
4 files changed, 9 insertions, 8 deletions
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 @@ + <footer> + <hr> + <p>The <a href="https://xengineering.eu/git/ceres">Ceres</a> recipe server is licensed under <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPL v3</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> + </footer> 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 @@ <li><a href="./recipe?id={{.Id}}">{{.Title}}</a></li>{{end}} </ul> - <footer> - <hr> - <p>The <a href="https://xengineering.eu/git/ceres">Ceres</a> recipe server is licensed under <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPL v3</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> - </footer> + {{ template "footer.html" }} + </main> </body> 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 @@ <a href="./recipe/edit?id={{.Id}}"><button>edit</button></a> {{.RenderedDescriptionMarkdown}} - <footer> - <hr> - <p>The <a href="https://xengineering.eu/git/ceres">Ceres</a> recipe server is licensed under <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPL v3</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> - </footer> + {{ template "footer.html" }} + </main> </body> </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 @@ <button type="submit">save</button> </form> <a href="/recipe?id={{.Id}}"><button>cancel</button></a> + {{ template "footer.html" }} </main> </body> </html> |