mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
124 lines
4.6 KiB
HTML
124 lines
4.6 KiB
HTML
<nav id="navbar" class="bd-navbar navbar has-shadow is-spaced">
|
|
<div class="container">
|
|
<div class="navbar-brand">
|
|
<a class="navbar-item" href="{{ site.url }}">
|
|
<img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.data.meta.title }}" width="112" height="28">
|
|
</a>
|
|
|
|
<a class="navbar-item is-hidden-desktop" href="{{ site.data.meta.github }}" target="_blank">
|
|
<span class="icon" style="color: #333;">
|
|
<i class="fab fa-lg fa-github-alt"></i>
|
|
</span>
|
|
</a>
|
|
|
|
<a class="navbar-item is-hidden-desktop" href="{{ site.data.meta.twitter }}" target="_blank">
|
|
<span class="icon" style="color: #55acee;">
|
|
<i class="fab fa-lg fa-twitter"></i>
|
|
</span>
|
|
</a>
|
|
|
|
<div id="navbarBurger" class="navbar-burger burger" data-target="navMenu{{ include.id }}">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="navMenu{{ include.id }}" class="navbar-menu">
|
|
<div class="navbar-start">
|
|
<a class="navbar-item bd-navbar-item-documentation {% if page.route == 'documentation' %}is-active{% endif %} {% if page.layout == 'documentation' %}is-active{% endif %}" href="{{ site.url }}{{ site.data.meta.documentation }}">
|
|
<span class="icon has-text-primary">
|
|
<i class="fas fa-book"></i>
|
|
</span>
|
|
<span class="is-hidden-touch is-hidden-widescreen">
|
|
Docs
|
|
</span>
|
|
<span class="is-hidden-desktop-only">
|
|
Documentation
|
|
</span>
|
|
</a>
|
|
|
|
{% for link_id in site.data.links.navbar %}
|
|
{% assign link = site.data.links.by_id[link_id] %}
|
|
<a class="navbar-item bd-navbar-item-{{ link_id }} {% if page.route == link_id %}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>
|
|
{% endfor %}
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
{% assign link = site.data.links.by_id['more'] %}
|
|
<a class="navbar-link" href="{{ site.url }}{{ link.path }}">
|
|
{{ link.name }}
|
|
</a>
|
|
|
|
<div id="moreDropdown" class="navbar-dropdown">
|
|
<a class="navbar-item is-hidden-widescreen" href="{{ site.data.meta.github }}" target="_blank">
|
|
<span>
|
|
<span class="icon" style="color: #333;">
|
|
<i class="fab fa-lg fa-github-alt"></i>
|
|
</span>
|
|
<strong>GitHub</strong>
|
|
<br>
|
|
The official repository
|
|
</span>
|
|
</a>
|
|
|
|
<hr class="navbar-divider is-hidden-widescreen">
|
|
|
|
{% for link_id in site.data.links.more %}
|
|
{% assign link = site.data.links.by_id[link_id] %}
|
|
<a class="navbar-item {% if page.route == link_id %}is-active{% endif %} {% if forloop.first %}is-hidden-widescreen{% endif %}" href="{{ site.url }}{{ link.path }}">
|
|
<span>
|
|
<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>
|
|
<strong>{{ link.name }}</strong>
|
|
<br>
|
|
{{ link.subtitle }}
|
|
</span>
|
|
</a>
|
|
{% unless forloop.last %}
|
|
<hr class="navbar-divider {% if forloop.first %}is-hidden-widescreen{% endif %}">
|
|
{% endunless %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navbar-end">
|
|
<a class="bd-navbar-icon navbar-item" href="{{ site.data.meta.github }}" target="_blank">
|
|
<span class="icon" style="color: #333;">
|
|
<i class="fab fa-lg fa-github-alt"></i>
|
|
</span>
|
|
</a>
|
|
|
|
<a class="bd-navbar-icon navbar-item" href="{{ site.data.meta.twitter }}" target="_blank">
|
|
<span class="icon" style="color: #55acee;">
|
|
<i class="fab fa-lg fa-twitter"></i>
|
|
</span>
|
|
</a>
|
|
|
|
<div class="navbar-item">
|
|
<div class="field is-grouped is-grouped-multiline">
|
|
<p class="control">
|
|
{% include elements/github.html %}
|
|
</p>
|
|
<p class="control">
|
|
{% include elements/patreon.html %}
|
|
</p>
|
|
<p class="control">
|
|
<a class="button is-primary" style="height: 2.25em; padding: calc(.375em - 1px) .75em;" href="{{ site.data.meta.download }}">
|
|
<strong>Download</strong>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|