2021-01-16 21:50:44 -05:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-primary">
|
2020-04-28 17:09:22 -04:00
|
|
|
<div class="container">
|
2020-05-12 12:15:32 -04:00
|
|
|
<a class="navbar-brand" href="/">
|
2021-09-11 18:54:27 -04:00
|
|
|
<picture>
|
2021-09-13 10:55:26 -04:00
|
|
|
<!--<source srcset="/assets/img/layout/privacy-guides-logo-dark.svg" media="(prefers-color-scheme: dark)">-->
|
2021-12-31 19:29:10 -05:00
|
|
|
<source srcset="/assets/img/layout/privacy-guides-logo-notext-colorbg.svg" media="(max-width: 400px)">
|
|
|
|
<img class="navbar-logo" src="/assets/img/layout/privacy-guides-logo-light.svg" alt="Privacy Guides Logo" height="39">
|
2021-09-11 18:54:27 -04:00
|
|
|
</picture>
|
2020-05-12 12:15:32 -04:00
|
|
|
</a>
|
2021-09-15 11:21:57 -04:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
2020-04-28 17:09:22 -04:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
2020-12-03 23:44:27 -05:00
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
2021-05-03 22:13:50 -04:00
|
|
|
<div class="ms-auto"></div>
|
2020-04-28 17:09:22 -04:00
|
|
|
<ul class="navbar-nav mt-2 mt-lg-0">
|
2021-05-03 10:01:08 -04:00
|
|
|
{% for item_hash in site.data.nav %}
|
|
|
|
{% assign item = item_hash[1] %}
|
|
|
|
{% if item.type == "link" %}
|
2020-04-28 17:09:22 -04:00
|
|
|
<li class="nav-item">
|
2021-05-03 10:01:08 -04:00
|
|
|
<a class="nav-link" href="{% link {{ item.file }} %}">{{ item.title }}</a>
|
2020-12-03 23:44:27 -05:00
|
|
|
</li>
|
2021-05-03 10:01:08 -04:00
|
|
|
{% elsif item.type == "dropdown" %}
|
2020-12-03 23:44:27 -05:00
|
|
|
<li class="nav-item dropdown">
|
2021-05-03 22:13:50 -04:00
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="providerDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2021-05-03 10:01:08 -04:00
|
|
|
{{ item.title }}
|
2020-12-03 23:44:27 -05:00
|
|
|
</a>
|
2021-09-14 13:20:55 -04:00
|
|
|
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
2021-05-03 10:01:08 -04:00
|
|
|
{% for subitem in item.items %}
|
|
|
|
{% if subitem.type == "link" %}
|
|
|
|
<a class="dropdown-item" href="{% link {{ subitem.file }} %}{%- if subitem.anchor -%}#{{ subitem.anchor }}{%- endif -%}"><span class="{{ subitem.icon | default: "fad fa-file" }} fa-fw"></span> {{ subitem.title }}</a>
|
|
|
|
{% elsif subitem.type == "divider" %}
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-12-03 23:44:27 -05:00
|
|
|
</div>
|
|
|
|
</li>
|
2021-05-03 10:01:08 -04:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-04-28 17:09:22 -04:00
|
|
|
</ul>
|
2020-05-12 02:28:28 -04:00
|
|
|
</div>
|
2020-04-28 17:09:22 -04:00
|
|
|
</div>
|
|
|
|
</nav>
|