diff options
author | Valentin Popov <valentin@popov.link> | 2022-11-10 03:30:07 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2022-11-10 03:30:07 +0300 |
commit | c51ced082955bef5838f1c373ae361e5c46d6d1f (patch) | |
tree | bbefc9a7ede76f5057f48172c86e5312b325d5c8 /templates | |
parent | fd90ea2db3b5b17d871346210ad80f5d9ee441ad (diff) | |
download | popov.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.html | 11 | ||||
-rw-r--r-- | templates/includes/navbar.html | 10 |
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 |