Skip to content

Commit 38c2006

Browse files
authored
feat: Translation (#64)
* feat: translation * fix: articles permaLinks, copyright and language flag parameters * feat: test preview * fix: preview comment * chore: removed previews * fix: useless formats and target blanck * fix: blogs urls * fix: languages urls
1 parent f4fb019 commit 38c2006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1009
-634
lines changed

assets/scss/custom.scss

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,47 @@ h1 em {
9494
padding: 60px 15px 40px;
9595
}
9696
}
97+
98+
.language-selector {
99+
font-weight: 500;
100+
font-size: 16px;
101+
color: lighten($black, 13.33) !important;
102+
padding: 8px 15px;
103+
border: 2px solid transparent;
104+
border-radius: 6px;
105+
background-color: transparent;
106+
cursor: pointer;
107+
transition: all 0.3s ease;
108+
appearance: none;
109+
-webkit-appearance: none;
110+
-moz-appearance: none;
111+
padding-right: 35px;
112+
113+
&:hover {
114+
color: $primary-color !important;
115+
border-color: lighten($primary-color, 20);
116+
background-color: lighten($primary-color, 43);
117+
}
118+
119+
&:focus {
120+
outline: none;
121+
border-color: $primary-color;
122+
box-shadow: 0 0 0 0.2rem rgba($primary-color, 0.25);
123+
}
124+
125+
option {
126+
padding: 8px 15px;
127+
font-weight: 500;
128+
}
129+
}
130+
131+
@media (max-width: 991px) {
132+
.language-selector {
133+
margin-bottom: 15px;
134+
text-align: center;
135+
width: auto;
136+
min-width: 160px;
137+
}
138+
}
139+
140+

config/_default/config.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,21 @@ suffixes = [""]
4242
[outputFormats.WebAppManifest]
4343
mediaType = "application/manifest+json"
4444
rel = "manifest"
45+
46+
defaultContentLanguage = "fr"
47+
defaultContentLanguageInSubdir = false
48+
49+
[languages]
50+
[languages.fr]
51+
languageName = "Français"
52+
weight = 1
53+
54+
[languages.fr.params]
55+
flag = "🇫🇷"
56+
57+
[languages.en]
58+
languageName = "English"
59+
weight = 2
60+
61+
[languages.en.params]
62+
flag = "🇬🇧"
Lines changed: 35 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,35 @@
1-
# main menu
2-
[[main]]
3-
name = "Services"
4-
url = "#services"
5-
weight = 2
6-
7-
[[main]]
8-
name = "Team"
9-
url = "#team"
10-
weight = 3
11-
12-
[[main]]
13-
name = "Partners"
14-
url = "#customers"
15-
weight = 4
16-
17-
[[main]]
18-
name = "Portfolio"
19-
url = "portfolio/"
20-
weight = 5
21-
22-
[[main]]
23-
name = "Blog"
24-
url = "blog/"
25-
weight = 6
26-
27-
[[main]]
28-
name = "Videos"
29-
url = "videos/"
30-
weight = 7
31-
32-
[[main]]
33-
name = "Contact"
34-
url = "#contact"
35-
weight = 8
36-
37-
# footer menu
38-
#[[footer]]
39-
#name = "About"
40-
#url = "about/"
41-
#weight = 1
42-
#
43-
#[[footer]]
44-
#name = "Blog"
45-
#url = "blog/"
46-
#weight = 2
47-
#
48-
#[[footer]]
49-
#name = "Blog Details"
50-
#url = "blog/post-1/"
51-
#weight = 3
52-
#
53-
#[[footer]]
54-
#name = "Terms & Conditions"
55-
#url = "terms-and-conditions/"
56-
#weight = 4
1+
# English main menu
2+
[[main]]
3+
name = "Services"
4+
url = "#services"
5+
weight = 2
6+
7+
[[main]]
8+
name = "Team"
9+
url = "#team"
10+
weight = 3
11+
12+
[[main]]
13+
name = "Partners"
14+
url = "#customers"
15+
weight = 4
16+
17+
[[main]]
18+
name = "Portfolio"
19+
url = "portfolio/"
20+
weight = 5
21+
22+
[[main]]
23+
name = "Blog"
24+
url = "blog/"
25+
weight = 6
26+
27+
[[main]]
28+
name = "Videos"
29+
url = "videos/"
30+
weight = 7
31+
32+
[[main]]
33+
name = "Contact"
34+
url = "#contact"
35+
weight = 8

config/_default/menus.fr.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# French main menu
2+
[[main]]
3+
name = "Services"
4+
url = "fr/#services"
5+
weight = 2
6+
7+
[[main]]
8+
name = "Équipe"
9+
url = "fr/#team"
10+
weight = 3
11+
12+
[[main]]
13+
name = "Partenaires"
14+
url = "fr/#customers"
15+
weight = 4
16+
17+
[[main]]
18+
name = "Portefeuille"
19+
url = "fr/portfolio/"
20+
weight = 5
21+
22+
[[main]]
23+
name = "Blog"
24+
url = "fr/blog/"
25+
weight = 6
26+
27+
[[main]]
28+
name = "Vidéos"
29+
url = "fr/videos/"
30+
weight = 7
31+
32+
[[main]]
33+
name = "Contact"
34+
url = "fr/#contact"
35+
weight = 8

config/_default/params.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ image = "images/logo.png" # this image will be used as fallback if a page has no
1919
contact_form_action = "https://formspree.io/f/mqknqebr" # contact form works with https://formspree.io
2020

2121
# copyright
22-
copyright = "©twiinIT - 2022-2024"
22+
copyright = "©twiinIT - 2022-2025"
2323

2424
# custom script on header, example: custom_script= "<script>console.log(\"Hello World\")</script>"
2525
custom_script= ""
@@ -35,10 +35,10 @@ black = "#3E3E3E"
3535
primary_color = "#F2BF42"
3636

3737
# contact information
38-
#[contact_info]
38+
[contact_info]
3939
#address = "2118 Thornridge Cir. Syracuse, Connecticut 35624"
40-
#phone = ["+704-555-0127", "+205-857-2321", "+002-569-6969"]
41-
40+
phone = ["+33-XXX-XXX-XXX"]
41+
email = ["[email protected]"]
4242

4343
# imaging processing
4444
[imaging]
File renamed without changes.

content/_index.fr.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
# banner
3+
banner:
4+
title: "Des jumeaux numériques pour *comprendre*, *concevoir* et *exploiter* vos produits"
5+
button: "Notre Vision"
6+
button_link: "#"
7+
8+
9+
# contact
10+
contact_image: "images/vectors/contact.png"
11+
12+
---
File renamed without changes.

content/advisors/benoit.fr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: "Benoit Combemale"
3+
image: "images/team/benoit.jpg"
4+
designation: "Conseiller Scientifique"
5+
weight: 200
6+
---
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
---
2-
subtitle: "Our Advisors"
3-
title: "External Partnerships"
4-
headless: true
5-
---
1+
---
2+
subtitle: "Our Advisors"
3+
title: "External Partnerships"
4+
headless: true
5+
---

0 commit comments

Comments
 (0)