aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml40
-rw-r--r--_includes/i18n-date.html5
-rw-r--r--_includes/public-inbox.html21
-rw-r--r--a-propos.md27
-rw-r--r--aja.md10
-rw-r--r--feed.blog.fr.atom4
-rw-r--r--feed.til.fr.atom4
-rw-r--r--fr/index.md6
-rwxr-xr-xscripts/assert-content.sh2
-rw-r--r--sobre.md6
10 files changed, 110 insertions, 15 deletions
diff --git a/_config.yml b/_config.yml
index 4df7e1b..89e3207 100644
--- a/_config.yml
+++ b/_config.yml
@@ -41,57 +41,74 @@ t:
about:
en: "About"
pt: "Sobre"
+ fr: "À propos"
about_url:
en: "/about.html"
pt: "/sobre.html"
+ fr: "/a-propos.html"
til:
en: "TIL"
pt: "HEA"
+ fr: "AJA"
til_url:
en: "/til.html"
pt: "/hea.html"
+ fr: "/aja.html"
til_listing:
en: "TIL Listing"
pt: "Lista de HEA"
+ fr: "Liste de AJA"
recent_posts:
en: "Recent posts"
pt: "Postagens recentes"
+ fr: "Postes récent"
feed:
title:
blog:
- en: "EuAndreh's blog feed"
- pt: "Feed do blog do EuAndreh"
+ en: "EuAndreh's blog"
+ pt: "Blog do EuAndreh"
+ fr: "Blogue d'EuAndreh"
til:
- en: "EuAndreh's TIL feed"
- pt: "Feed do HEA do EuAndreh"
+ en: "EuAndreh's TIL"
+ pt: "HEA do EuAndreh"
+ fr: "AJA d'EuAndreh"
url:
blog:
en: "/feed.blog.en.atom"
pt: "/feed.blog.pt.atom"
+ fr: "/feed.blog.fr.atom"
til:
en: "/feed.til.en.atom"
pt: "/feed.til.pt.atom"
+ fr: "/feed.til.fr.atom"
posted_on:
en: "Posted on"
pt: "Postado em"
+ fr: "Publié le"
updated_at:
en: "Updated at"
pt: "Atualizado em"
+ fr: "Mis à jour le"
alt:
atom:
en: "Atom/RSS icon"
pt: "Ícone de Atom/RSS"
+ fr: "Icône Atom/RSS"
envelope_icon:
en: "Envelope icon"
pt: "Ícone de envelope"
+ fr: "Icône d'enveloppe"
lock_icon:
en: "Lock icon"
pt: "Ícone de fechadura"
+ fr: "Ícone de verrouillage"
footer:
en: >-
The content for this site is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>. The <a href="https://git.sr.ht/~euandreh/website">code</a> is <a href="https://git.sr.ht/~euandreh/website/tree/master/LICENSE">GPLv3 or later</a>.
pt: >-
- O conteúdo desse site é licensiado sob a licença <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>. O <a href="https://git.sr.ht/~euandreh/website">código</a> é <a href="https://git.sr.ht/~euandreh/website/tree/master/LICENSE">GPLv3 ou versões maiores</a>.
+ O conteúdo deste site é licenciado sob a licença <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>. O <a href="https://git.sr.ht/~euandreh/website">código</a> é <a href="https://git.sr.ht/~euandreh/website/tree/master/LICENSE">GPLv3 ou versões maiores</a>.
+ fr: >-
+ Le contenu de cette site est sous la licence <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>. Le <a href="https://git.sr.ht/~euandreh/website">code</a> est <a href="https://git.sr.ht/~euandreh/website/tree/master/LICENSE">GPLv3 ou supérieur</a>.
months:
en:
- January
@@ -119,3 +136,16 @@ t:
- Outubro
- Novembro
- Dezembro
+ fr:
+ - Janvier
+ - Fèvrier
+ - Mars
+ - Avril
+ - Mail
+ - Juin
+ - Juillet
+ - Août
+ - Septembre
+ - Octobre
+ - Novembre
+ - Décembre
diff --git a/_includes/i18n-date.html b/_includes/i18n-date.html
index 5fa30b4..c57d93b 100644
--- a/_includes/i18n-date.html
+++ b/_includes/i18n-date.html
@@ -12,4 +12,9 @@
handcrafting the "%-d de %B de %Y" date format
{% endcomment %}
{{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
+{% elsif page.lang == "fr" %}
+ {% comment %}
+ handcrafting the "%-d de %B de %Y" date format
+ {% endcomment %}
+ {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
{% endif %}
diff --git a/_includes/public-inbox.html b/_includes/public-inbox.html
index f598f8f..95a98ec 100644
--- a/_includes/public-inbox.html
+++ b/_includes/public-inbox.html
@@ -4,16 +4,25 @@
directly or start a discussion in my
<a href="https://lists.sr.ht/~euandreh/public-inbox">public inbox</a>
by sending an email to
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">~euandreh/public-inbox@lists.sr.ht</a>
- [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">mailing list etiquette</a>],
- or see <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">existing discussions</a>.
+ <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">~euandreh/public-inbox@lists.sr.ht</a>,
+ or see
+ <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">existing discussions</a>.
{% elsif page.lang == 'pt' %}
Você tem um comentário sobre esse texto?
<a href="mailto:eu@euandre.org">Me mande um email</a>
diretamente ou comece uma discussão na minha
<a href="https://lists.sr.ht/~euandreh/public-inbox">caixa de entrada pública</a>
mandando um email para
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">~euandreh/public-inbox@lists.sr.ht</a>
- [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">etiqueta da lista de email</a> (em inglês)],
- ou procure por <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">discussões existentes</a>.
+ <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">~euandreh/public-inbox@lists.sr.ht</a>,
+ ou procure por
+ <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">discussões existentes</a>.
+{% elsif page.lang == 'fr' %}
+ Avez-vous des commentaires à propos de cette text?
+ <a href="mailto:eu@euandre.org">Envoyez-moi un email</a>
+ directement ou commencer une discussiòn dans ma
+ <a href="https://lists.sr.ht/~euandreh/public-inbox">boîte de récepcion publique</a>
+ en envoyant un email à
+ <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">~euandreh/public-inbox@lists.sr.ht</a>,
+ ou rechèrche les
+ <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">discussion existantes</a>.
{% endif %}
diff --git a/a-propos.md b/a-propos.md
new file mode 100644
index 0000000..8515fbb
--- /dev/null
+++ b/a-propos.md
@@ -0,0 +1,27 @@
+---
+layout: page
+title: À propos
+lang: fr
+ref: about
+---
+Salut, je suis EuAndreh. J'ecris logiciel et parfois musique. Vous pouvez
+rencontrer de donnés pour me contacter au bas cette de page, ou vouz pouvez
+également envoyer une message dans ma [boîte de récepcion publique][0].
+
+[0]: mailto:~euandreh/public-inbox@lists.sr.ht
+
+Ceci est mon site personnel où j'ecris des articles, publie des logicieles et
+d'autres travaux connexes.
+
+Ci-dessous vouz trouvez des projècts interresants de moi.
+
+## Projets de logiciels
+
+### [boneco](https://boneco.euandreh.xyz)
+
+Page simple pour générér des versions pliables pour l'impression de fichiers PDF
+directement dans le navigateur.
+
+## Autres
+
+[Liste de pastebins](./pastebins.html) (en anglais).
diff --git a/aja.md b/aja.md
new file mode 100644
index 0000000..b033d92
--- /dev/null
+++ b/aja.md
@@ -0,0 +1,10 @@
+---
+title: Aujourd'hui J'Appris
+layout: tils-listing
+lang: fr
+ref: tils
+---
+**A**ujourd'hui **J**'**A**ppris (de l'anglais, _**T**oday **I** **L**earned_):
+petites postes de connaissances utiles.
+
+Copie éhontée de [Anna e só](https://til.flourishing.stream/).
diff --git a/feed.blog.fr.atom b/feed.blog.fr.atom
new file mode 100644
index 0000000..bd30392
--- /dev/null
+++ b/feed.blog.fr.atom
@@ -0,0 +1,4 @@
+---
+---
+{% assign lposts = site.posts | where:"lang", "fr" | sort: "date" | reverse %}
+{% include feed.atom entries=lposts kind="blog" lang="en" %} \ No newline at end of file
diff --git a/feed.til.fr.atom b/feed.til.fr.atom
new file mode 100644
index 0000000..7ed3a8d
--- /dev/null
+++ b/feed.til.fr.atom
@@ -0,0 +1,4 @@
+---
+---
+{% assign ltils = site.tils | where:"lang", "fr" | sort: "date" | reverse %}
+{% include feed.atom entries=ltils kind="til" lang="en" %} \ No newline at end of file
diff --git a/fr/index.md b/fr/index.md
new file mode 100644
index 0000000..45bef71
--- /dev/null
+++ b/fr/index.md
@@ -0,0 +1,6 @@
+---
+title: Blogue
+layout: index
+lang: fr
+ref: index
+---
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh
index 87670ab..eeca684 100755
--- a/scripts/assert-content.sh
+++ b/scripts/assert-content.sh
@@ -46,7 +46,7 @@ get-title() {
echo "${1}" | base64 --decode | jq -r .title
}
-LANGS=(en pt)
+LANGS=(en pt fr)
IGNORED_PAGES=(site.json sitemap.xml *.atom)
assert-frontmatter() {
diff --git a/sobre.md b/sobre.md
index 904b079..cded2e4 100644
--- a/sobre.md
+++ b/sobre.md
@@ -4,8 +4,8 @@ title: Sobre
lang: pt
ref: about
---
-Oi, eu sou EuAndreh. Eu escrevo software, e música ocasionalmente. Você encontra
-dados para me contatar no rodapé dessa página, ou pode mandar também uma
+Oi, eu sou EuAndreh. Eu escrevo software e ocasionalmente música. Você encontra
+dados para me contatar no rodapé desta página, ou pode mandar também uma
mensagem para minha [caixa de entrada pública][0].
[0]: mailto:~euandreh/public-inbox@lists.sr.ht
@@ -20,7 +20,7 @@ Abaixo você encontra alguns projetos interessantes meus.
### [boneco](https://boneco.euandreh.xyz)
Página simples para gerar versões dobráveis para impressão de arquivos PDF
-diretamento do navegador.
+diretamente no navegador.
## Outros