Forked from
websites / duniter_website_fr_v2
277 commits behind the upstream repository.
-
Hugo Trentesaux authored
réorganisation contenu wiki, choix ordre pages, création "à propos"
Hugo Trentesaux authoredréorganisation contenu wiki, choix ordre pages, création "à propos"
nav.html 1.50 KiB
<nav class="w3-bar w3-xlarge">
<a href="/" class="w3-bar-item w3-button w3-mobile {% if current_path %}{% if current_path == "/" %}active{% endif %}{% endif %}"><img alt="" class="icon" src="/img/duniter.png"/> Duniter</a>
{% set index = get_section(path="_index.md") %}
{% for p in index.pages %}
{% if not p.extra.hide %}
<a href="{{ p.permalink }}" class="w3-bar-item w3-button w3-mobile
{% if current_path %}{% if current_path == p.path %}active{% endif %}{% endif %}">
{{p.title}}
</a>
{% endif %}
{% endfor %}
<div class="w3-dropdown-hover w3-mobile w3-right">
<button class="w3-button">Plus <i class="fa fa-caret-down"></i></button>
<div class="w3-dropdown-content w3-bar-block w3-dark-grey">
<a href="/wiki/about/" class="w3-bar-item w3-button w3-mobile">À propos</a>
<a href="https://git.duniter.org/" class="w3-bar-item w3-button w3-mobile"><i class="fa fa-gitlab"></i> GitLab</a>
<a href="https://forum.duniter.org/" class="w3-bar-item w3-button w3-mobile"><img alt="d" class="icon" src="https://simpleicons.org/icons/discourse.svg"/> Forum</a>
</div>
</div>
{% for s in index.subsections %}{% set subsection = get_section(path=s) %}
{% if not subsection.extra.hide %}
<a href="{{ subsection.permalink }}" class="w3-bar-item w3-button w3-mobile w3-right
{% if current_path %}{% if current_path is starting_with(subsection.path) %}active{% endif %}{% endif %}">
{{subsection.title}}
</a>
{% endif %}
{% endfor %}
</nav>