diff options
author | Valentin Popov <valentin@popov.link> | 2022-11-09 18:59:41 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2022-11-09 18:59:41 +0300 |
commit | 83a45bcc1986c9ea1a9d8626c7d199b1f90964fa (patch) | |
tree | e7f85e788fc5dbe5c091a2780cf63115e77d90c2 | |
parent | 4bcbc98d22eebaa667223855f086e27e88c619ca (diff) | |
download | popov.link-83a45bcc1986c9ea1a9d8626c7d199b1f90964fa.tar.xz popov.link-83a45bcc1986c9ea1a9d8626c7d199b1f90964fa.zip |
Moved navigation links to the config
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | templates/base.html | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/config.toml b/config.toml index b9048a1..835c1dd 100644 --- a/config.toml +++ b/config.toml @@ -89,3 +89,5 @@ contacts = [ links = [ { title = "Nokia N900 archives", url = "https://disk.yandex.ru/d/L-NZ3c4qc7Uizw", description = "Official firmware, tools and images for N900." }, ] + +navbar = [{ title = "Home", path = "/" }, { title = "Blog", path = "/blog" }] diff --git a/templates/base.html b/templates/base.html index 4f3f436..efdf072 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,8 +21,10 @@ <body> <header> <nav> - <a href="/">Home</a> - <a href="/blog">Blog</a> + {% for link in config.extra.navbar %} + <a href="{{ link.path | safe }}"> {{ link.title | safe }}</a> + {% endfor %} + <span> <span>|</span> <a href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}">RSS</a> |