Skip to content
Snippets Groups Projects
Commit 72372aad authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

[theme] fix html classes

parent e67e2585
No related branches found
No related tags found
No related merge requests found
Pipeline #17470 passed
<nav class="w3-bar w3-large"> <nav class="w3-bar w3-large">
<a href="/" class="w3-bar-item w3-button {% if current_path %}{% if current_path == "/" %}active{% endif %}{% endif %}"><img alt="" class="icon" src="/img/duniter-logo_alt.svg"/> Duniter</a> {# --- home button --- -#}
<a href="/" class="w3-bar-item w3-button {% if current_path %}{% if current_path == "/" %} active{% endif %}{% endif %}"><img alt="" class="icon" src="/img/duniter-logo_alt.svg"/> Duniter</a>
{%- set index = get_section(path="_index.md") -%} {%- set index = get_section(path="_index.md") -%}
{%- set contributeurs = get_section(path="contributeurs/_index.md") -%} {%- set contributeurs = get_section(path="contributeurs/_index.md") -%}
{# --- main links --- -#}
{%- for p in index.pages | concat(with=contributeurs) %} {%- for p in index.pages | concat(with=contributeurs) %}
{%- if not p.extra.hide -%} {%- if not p.extra.hide -%}
<a href="{{ p.permalink }}" class="w3-bar-item w3-button <a href="{{ p.permalink }}" class="w3-bar-item w3-button
{%- if current_path %}{% if current_path == p.path %}active{% endif %}{% endif -%} {%- if current_path %}{% if current_path == p.path %} active{% endif %}{% endif -%}
">{{p.title}}</a> ">{{p.title}}</a>
{%- endif -%} {%- endif -%}
{% endfor %} {% endfor %}
{# --- langage dropdown --- -#}
<div class="w3-dropdown-hover w3-dropdown-click w3-right"> <div class="w3-dropdown-hover w3-dropdown-click w3-right">
<button class="w3-button" style="font-size: 1.6em; padding: 0 10px;">🇫🇷</button> <button class="w3-button" style="font-size: 1.6em; padding: 0 10px;">🇫🇷</button>
<div class="w3-dropdown-content w3-bar-block w3-light-grey" style="min-width: 29px;"> <div class="w3-dropdown-content w3-bar-block w3-light-grey" style="min-width: 29px;">
...@@ -19,6 +22,7 @@ ...@@ -19,6 +22,7 @@
</div> </div>
</div> </div>
{# --- useful links --- -#}
<div class="w3-dropdown-hover w3-dropdown-click w3-right"> <div class="w3-dropdown-hover w3-dropdown-click w3-right">
<button class="w3-button">Liens <i class="fa fa-caret-down"></i></button> <button class="w3-button">Liens <i class="fa fa-caret-down"></i></button>
<div class="w3-dropdown-content w3-bar-block w3-light-grey"> <div class="w3-dropdown-content w3-bar-block w3-light-grey">
...@@ -28,12 +32,13 @@ ...@@ -28,12 +32,13 @@
<a rel="me" href="https://mamot.fr/@duniter" class="w3-bar-item w3-button"><img alt="m" class="icon" src="https://simpleicons.org/icons/mastodon.svg"/> Mastodon</a> <a rel="me" href="https://mamot.fr/@duniter" class="w3-bar-item w3-button"><img alt="m" class="icon" src="https://simpleicons.org/icons/mastodon.svg"/> Mastodon</a>
</div> </div>
</div> </div>
{# --- right links --- -#}
{%- for s in index.subsections | reverse -%} {%- for s in index.subsections | reverse -%}
{%- set subsection = get_section(path=s) -%} {%- set subsection = get_section(path=s) -%}
{%- if not subsection.extra.hide and subsection.path != contributeurs.path -%} {%- if not subsection.extra.hide and subsection.path != contributeurs.path -%}
<a href="{{ subsection.permalink }}" class="w3-bar-item w3-button w3-right <a href="{{ subsection.permalink }}" class="w3-bar-item w3-button w3-right
{%- if current_path %}{% if current_path is starting_with(subsection.path) %}active{% endif %}{% endif -%} {%- if current_path %}{% if current_path is starting_with(subsection.path) %} active{% endif %}{% endif -%}
">{{subsection.title}}</a> ">{{subsection.title}}</a>
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment