Welcome to mirror list, hosted at ThFree Co, Russian Federation.

navbar-start.html « global « _includes « docs - github.com/jgthms/bulma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e158f33969710150092380f8af8bd9bb932000ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div id="{{ include.id }}" class="navbar-start bd-navbar-start bd-is-{{ include.version }}">
  <a class="
      navbar-item bd-navbar-item bd-navbar-item-base 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>
      Docs
    </span>
  </a>

  {% for link_id in site.data.links.navbar %}
    {%
      include global/navbar-item.html
      link_id=link_id
      class="bd-navbar-item-base"
    %}
  {% endfor %}

  {% for link_id in site.data.links.navbarMore %}
    {%
      include global/navbar-item.html
      link_id=link_id
      class="bd-navbar-item-more"
    %}
  {% endfor %}

  <div class="navbar-item bd-navbar-item bd-navbar-item-base has-dropdown is-hoverable">
    {% assign link = site.data.links.by_id['more'] %}

    <a class="navbar-link bd-navbar-ellipsis" href="{{ site.url }}{{ link.path }}">
      <span class="icon">
        <i class="fas fa-ellipsis-h"></i>
      </span>
    </a>

    <div class="navbar-dropdown bd-navbar-dropdown is-boxed">
      {% for link_id in site.data.links.more %}
        {% assign link = site.data.links.by_id[link_id] %}
        {% assign cleanpath = link.path | remove_first: "/" %}
        <a class="
            navbar-item
            {% if page.route == cleanpath %}is-active{% endif %}
          "
          data-route="{{ page.route }}"
          href="{{ site.url }}{{ link.path }}">
            <div>
              <div class="icon-text">
                <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>
                  <strong>{{ link.name }}</strong>
                </span>
              </div>
              {{ link.subtitle }}
            </div>
        </a>
        {% unless forloop.last %}
          <hr class="navbar-divider {% if forloop.first %}{% endif %}">
        {% endunless %}
      {% endfor %}
    </div>
  </div>
</div>