Translate to French

This commit is contained in:
Antoine Martin 2022-11-19 00:37:57 +01:00
parent 3cda4fa533
commit 17d714360f
9 changed files with 36 additions and 9 deletions

View file

@ -2,3 +2,10 @@ baseURL: "https://antoinemartin.fr/"
title: 'Antoine Martin - Computer Person'
theme: 'custom'
enableRobotsTXT: true
defaultContentLanguage: en
languages:
en:
languageCode: en
fr:
languageCode: fr

3
content/_index.en.md Normal file
View file

@ -0,0 +1,3 @@
# Antoine Martin
Aspiring computer scientist.

3
content/_index.fr.md Normal file
View file

@ -0,0 +1,3 @@
# Antoine Martin
Informaticien en devenir.

View file

@ -1,5 +0,0 @@
# Antoine Martin
Computer Scientist in training.
WIP.

View file

@ -43,10 +43,6 @@ small{
font-size: 0.4em;
}
p.st{
margin-top: -1em;
}
ul{
li{
img{
@ -55,6 +51,11 @@ ul{
}
}
footer {
margin-top: 4em;
font-size: 12px;
}
@media screen and (max-width: 500px) {
body{
text-align: left;

View file

@ -0,0 +1,5 @@
translation-available:
other: "A french translation of this page is available"
here:
other: here

View file

@ -0,0 +1,5 @@
translation-available:
other: "Une traduction en anglais de cette page est disponible"
here:
other: ici

View file

@ -0,0 +1,3 @@
<footer>
{{- partial "translation-available.html" . -}}
</footer>

View file

@ -0,0 +1,5 @@
{{ if .IsTranslated }}
{{ range .Translations }}
{{ i18n "translation-available" }} <a href="{{ .RelPermalink }}">{{ i18n "here" }}</a>
{{ end }}
{{ end }}