mirror of
https://github.com/jgthms/bulma
synced 2026-03-21 04:34:30 -07:00
Bulma v9 website (#3249)
* Add Bulma v9 * Add vendor dependencies * Fix native * Fix sponsors * Add style attribute
This commit is contained in:
20
docs/_includes/global/navbar-item.html
Normal file
20
docs/_includes/global/navbar-item.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% assign link = site.data.links.by_id[include.link_id] %}
|
||||
{% assign cleanpath = link.path | remove_first: "/" %}
|
||||
|
||||
<a class="
|
||||
navbar-item
|
||||
bd-navbar-item
|
||||
bd-navbar-item-{{ link_id }}
|
||||
{{ include.class }}
|
||||
{% if page.route == cleanpath %}is-active{% endif %}
|
||||
{% if page.path contains '_posts' and link_id == 'blog' %}
|
||||
is-active
|
||||
{% endif %}
|
||||
"
|
||||
href="{{ site.url }}{{ link.path }}/">
|
||||
<span class="icon has-text-{{ link.color }}">
|
||||
<i class="{% if link.icon_brand %}fab{% elsif link.icon_regular %}far{% else %}fas{% endif %} fa-{{ link.icon }}"></i>
|
||||
</span>
|
||||
|
||||
<span>{{ link.title }}</span>
|
||||
</a>
|
||||
Reference in New Issue
Block a user