mirror of
https://github.com/icons8/lunacy-docs.git
synced 2026-10-06 14:05:58 -04:00
added external url option to navbar
This commit is contained in:
@@ -10,6 +10,7 @@ doks:
|
||||
item_url: /
|
||||
- item_name: Request Features
|
||||
item_url: icons8.ru/
|
||||
external_url: true
|
||||
- item_name: Release Notes
|
||||
item_url: /release-notes
|
||||
|
||||
|
||||
@@ -23,7 +23,11 @@
|
||||
{% if site.doks.header.nav %}
|
||||
<ul class="site-header__nav hidden-xs">
|
||||
{% for item in site.doks.header.nav %}
|
||||
<li><a href="{% if jekyll.environment == 'production' %}{{ site.doks.baseurl }}{% endif %}{{ item.item_url }}">{{ item.item_name }}</a></li>
|
||||
{% if item.external_url == true %}
|
||||
<li><a href="{{ item.item_url }}">{{ item.item_name }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% if jekyll.environment == 'production' %}{{ site.doks.baseurl }}{% endif %}{{ item.item_url }}">{{ item.item_name }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul><!-- /.site-header__nav -->
|
||||
<button class="offcanvas-toggle visible-xs">
|
||||
|
||||
Reference in New Issue
Block a user