summary refs log tree commit diff stats
path: root/themes/bear/templates/nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/bear/templates/nav.html')
-rw-r--r--themes/bear/templates/nav.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html
new file mode 100644
index 0000000..e006ab1
--- /dev/null
+++ b/themes/bear/templates/nav.html
@@ -0,0 +1,10 @@
+<a href="{{ config.base_url }}">Home</a>
+{%- if config.extra.main_menu %}
+  {%- for item in config.extra.main_menu %}
+    {%- if item.url is matching("https?://") %}
+      <a href="{{ item.url }}">{{ item.name }}</a>
+    {%- else %}
+      <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a>
+    {%- endif %}
+  {%- endfor %}
+{%- endif -%}