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
87e1983a
Commit
87e1983a
authored
2 years ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
[theme] automate langage menu
from config file variables
parent
47f7b805
No related branches found
No related tags found
1 merge request
!9
Multilang
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.toml
+1
-0
1 addition, 0 deletions
config.toml
templates/nav.html
+4
-2
4 additions, 2 deletions
templates/nav.html
with
5 additions
and
2 deletions
config.toml
+
1
−
0
View file @
87e1983a
...
...
@@ -16,6 +16,7 @@ highlight_code = true
highlight_theme
=
"base16-ocean-light"
[extra]
flag
=
"🇫🇷"
[extra.translations.en]
base_url
=
"http://duniter.trentesaux.fr/"
...
...
This diff is collapsed.
Click to expand it.
templates/nav.html
+
4
−
2
View file @
87e1983a
...
...
@@ -16,9 +16,11 @@
{# --- langage dropdown --- -#}
<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;"
>
{{config.extra.flag}}
</button>
<div
class=
"w3-dropdown-content w3-bar-block w3-light-grey"
style=
"min-width: 29px;"
>
<a
href=
"https://duniter.org/"
title=
"English website"
style=
"font-size: 1.6em; padding: 0 10px;"
>
🇬🇧
</a>
{%- for ltag,lcfg in config.extra.translations %}
<a
href=
"{{lcfg.base_url}}"
title=
"{{ltag}} website"
style=
"font-size: 1.6em; padding: 0 10px;"
>
{{lcfg.flag}}
</a>
{%- endfor %}
</div>
</div>
...
...
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