summaryrefslogtreecommitdiff
path: root/templates/navbar.html
diff options
context:
space:
mode:
authoreatradish <[email protected]>2022-04-09 19:34:05 +0800
committereatradish <[email protected]>2022-04-09 19:34:05 +0800
commit4165b2c0d86d1e3f47a7caf9a086798e51315f3b (patch)
tree095511e33c1eeab5a7888f73a41e06de1155478f /templates/navbar.html
downloadSeje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.gz
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.tar.bz2
Seje2-4165b2c0d86d1e3f47a7caf9a086798e51315f3b.zip
init
Diffstat (limited to 'templates/navbar.html')
-rw-r--r--templates/navbar.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/navbar.html b/templates/navbar.html
new file mode 100644
index 0000000..e50799d
--- /dev/null
+++ b/templates/navbar.html
@@ -0,0 +1,16 @@
+<nav class="navbar">
+ <ul class="menu">
+ {% set data = config.extra.seje_menu_links %}
+ {% for item in data %}
+ <li class="menu-item">
+ {% set url = item['url'] ~ '/'%}
+ {% set path = page.path|default(value = section.path) %}
+ {% if url == path or item['url'] == path %}
+ <a href="{{ item['url'] }}" class="current-menu-item-link">{{ trans(key=item['name']) }}</a>
+ {% else %}
+ <a href="{{ item['url'] }}" class="menu-item-link">{{ trans(key=item['name']) }}</a>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+</nav>