Translate to French
This commit is contained in:
parent
3cda4fa533
commit
17d714360f
|
@ -2,3 +2,10 @@ baseURL: "https://antoinemartin.fr/"
|
||||||
title: 'Antoine Martin - Computer Person'
|
title: 'Antoine Martin - Computer Person'
|
||||||
theme: 'custom'
|
theme: 'custom'
|
||||||
enableRobotsTXT: true
|
enableRobotsTXT: true
|
||||||
|
|
||||||
|
defaultContentLanguage: en
|
||||||
|
languages:
|
||||||
|
en:
|
||||||
|
languageCode: en
|
||||||
|
fr:
|
||||||
|
languageCode: fr
|
||||||
|
|
3
content/_index.en.md
Normal file
3
content/_index.en.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Antoine Martin
|
||||||
|
|
||||||
|
Aspiring computer scientist.
|
3
content/_index.fr.md
Normal file
3
content/_index.fr.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Antoine Martin
|
||||||
|
|
||||||
|
Informaticien en devenir.
|
|
@ -1,5 +0,0 @@
|
||||||
# Antoine Martin
|
|
||||||
|
|
||||||
Computer Scientist in training.
|
|
||||||
|
|
||||||
WIP.
|
|
|
@ -43,10 +43,6 @@ small{
|
||||||
font-size: 0.4em;
|
font-size: 0.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.st{
|
|
||||||
margin-top: -1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul{
|
ul{
|
||||||
li{
|
li{
|
||||||
img{
|
img{
|
||||||
|
@ -55,6 +51,11 @@ ul{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
margin-top: 4em;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
body{
|
body{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
5
themes/custom/i18n/en.yaml
Normal file
5
themes/custom/i18n/en.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
translation-available:
|
||||||
|
other: "A french translation of this page is available"
|
||||||
|
|
||||||
|
here:
|
||||||
|
other: here
|
5
themes/custom/i18n/fr.yaml
Normal file
5
themes/custom/i18n/fr.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
translation-available:
|
||||||
|
other: "Une traduction en anglais de cette page est disponible"
|
||||||
|
|
||||||
|
here:
|
||||||
|
other: ici
|
|
@ -0,0 +1,3 @@
|
||||||
|
<footer>
|
||||||
|
{{- partial "translation-available.html" . -}}
|
||||||
|
</footer>
|
|
@ -0,0 +1,5 @@
|
||||||
|
{{ if .IsTranslated }}
|
||||||
|
{{ range .Translations }}
|
||||||
|
{{ i18n "translation-available" }} <a href="{{ .RelPermalink }}">{{ i18n "here" }}</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
Loading…
Reference in a new issue