summaryrefslogtreecommitdiff
path: root/view/html/nav.html
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-03-03 17:12:14 +0100
committerxengineering <me@xengineering.eu>2024-03-03 17:12:14 +0100
commitd35bd7c65d062ca30852c901f6e98a05ceb309d7 (patch)
treeec334d5ff2bde62d6a18060de6f0fb3518d4f1fe /view/html/nav.html
parent439f49d4afb1f2bfc9a7aaf63bac7c560486c93c (diff)
downloadceres-d35bd7c65d062ca30852c901f6e98a05ceb309d7.tar
ceres-d35bd7c65d062ca30852c901f6e98a05ceb309d7.tar.zst
ceres-d35bd7c65d062ca30852c901f6e98a05ceb309d7.zip
view: Add template 'nav'
The <nav> section is the same on every page. This new template reduces code duplication.
Diffstat (limited to 'view/html/nav.html')
-rw-r--r--view/html/nav.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/html/nav.html b/view/html/nav.html
new file mode 100644
index 0000000..7bc0206
--- /dev/null
+++ b/view/html/nav.html
@@ -0,0 +1,5 @@
+{{define "nav"}}
+ <nav>
+ <a href="/recipes">HOME</a>
+ </nav>
+{{end}}