aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 03:30:07 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 03:30:07 +0300
commitc51ced082955bef5838f1c373ae361e5c46d6d1f (patch)
treebbefc9a7ede76f5057f48172c86e5312b325d5c8 /templates
parentfd90ea2db3b5b17d871346210ad80f5d9ee441ad (diff)
downloadpopov.link-c51ced082955bef5838f1c373ae361e5c46d6d1f.tar.xz
popov.link-c51ced082955bef5838f1c373ae361e5c46d6d1f.zip
Split the navigation bar
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html11
-rw-r--r--templates/includes/navbar.html10
2 files changed, 11 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html
index b0c0e80..14e6007 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -21,16 +21,7 @@
<body>
<header>
- <nav>
- {% for link in config.extra.navbar %}
- <a href="{{ link.path | trim }}">{{ link.title | trim }}</a>
- {% endfor %}
-
- <span>
- <span>|</span>
- <a href="{{ get_url(path='atom.xml', trailing_slash=false) | trim }}">RSS</a>
- </span>
- </nav>
+ {% include 'includes/navbar.html' %}
</header>
<article>
diff --git a/templates/includes/navbar.html b/templates/includes/navbar.html
new file mode 100644
index 0000000..31598be
--- /dev/null
+++ b/templates/includes/navbar.html
@@ -0,0 +1,10 @@
+<nav>
+ {% for link in config.extra.navbar %}
+ <a href="{{ link.path | trim }}">{{ link.title | trim }}</a>
+ {% endfor %}
+
+ <span>
+ <span>|</span>
+ <a href="{{ get_url(path='atom.xml', trailing_slash=false) | trim }}">RSS</a>
+ </span>
+</nav> \ No newline at end of file