Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter_website_fr_v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websites
duniter_website_fr_v2
Commits
72372aad
Commit
72372aad
authored
2 years ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
[theme] fix html classes
parent
e67e2585
No related branches found
No related tags found
No related merge requests found
Pipeline
#17470
passed
2 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/nav.html
+9
-4
9 additions, 4 deletions
templates/nav.html
with
9 additions
and
4 deletions
templates/nav.html
+
9
−
4
View file @
72372aad
<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 -%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment