aboutsummaryrefslogtreecommitdiff
path: root/crumbs/templates/components/link_generator.html
diff options
context:
space:
mode:
Diffstat (limited to 'crumbs/templates/components/link_generator.html')
-rw-r--r--crumbs/templates/components/link_generator.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/crumbs/templates/components/link_generator.html b/crumbs/templates/components/link_generator.html
new file mode 100644
index 0000000..7c7dc6a
--- /dev/null
+++ b/crumbs/templates/components/link_generator.html
@@ -0,0 +1,8 @@
+{% for title, link in MENUITEMS %}
+ {# Do magic with http/https #}
+ {% if 'http://' in link or 'https://' in link %}
+ <a class="nav-item" href="{{ link }}">{{ title }} </a>
+ {% else %}
+ <a class="nav-item" href="{{ SITEURL }}{{ link }}">{{ title }} </a>
+ {% endif %}
+{% endfor %} \ No newline at end of file