Add translation for French

This commit is contained in:
Huy-Ngo 2021-01-12 20:15:02 +07:00
parent dc1f563973
commit 02a68d92ca
1 changed files with 38 additions and 30 deletions

View File

@ -1,6 +1,6 @@
---
layout: post
title: "Using openring to add blogs you follow but in French"
title: "Ajouter des blogs qu'on suit avec openring"
date: 2021-01-11 15:51:31 +0700
tags: rss blog openring tutorial
lang: fr
@ -8,44 +8,48 @@ ref: openring-tutor
categories: blog
---
You may notice that now my blog now has a new section near the footer: a list of articles
from blogs I follow. This is generated by [openring], a tool for generating this list.
J'ai ajouté une section près du bas de page : une liste d'articles de blogs auxquels
je m'abonne. Elle est générée par [openring], un outil qui réçoit le flux de RSS et
génère un webring.
I found out about this when reading [Drew DeVault's blog][ddvault]
(who created openring). I think it is a nice way
to endorse authors we want to support and share cool things we read to our audience.
Je l'ai découvert pendant lire [le blog de Drew DeVault][ddvault] (qui l'a créé).
Comme je pense qu'il est un moyen de soutenir les auteurs qu'on aime
et cependant partager des articles géniaux aux lecteurs, alors, je l'ai ajouté dans mon
blog.
In this blog, I will write a tutorial to use this with jekyll.
Ce post va vous apprendre comment l'ajouter à votre blog.
# Install openring
# Installer openring
I am not aware of any prebuilt packages for openring, so let's build it from source.
Je ne suis pas sûr qu'il y ait un paquet precompilé pour openring,
donc on va l'installer de la source.
## Install dependencies
## Installer des dépendances
Openring depends on golang. This works on go1.14, the latest version on Tumbleweed
repository, but I recommend installing the latest version.
Openring dépends de golang. Quand ça marche avec go1.14, la version la plus récente
sur la dépôt de mon distro Tumbleweed, mais je recommande installer la plus récente
sur [golang].
You can refer to [golang]'s installation instruction for details.
Vous pouvez lire l'instruction de [golang].
## Build from source
## Compiler openring de la source
Firstly, clone the repository:
D'abord, clonez le dépôt:
```bash
git clone https://git.sr.ht/~sircmpwn/openring
```
Next, simply build the packages and link it to `usr/local/bin` so that it can be run:
Après, compilez le paquet et copiez-le à `/usr/local/bin` pour l'exécuter:
```bash
go build -o openring
sudo cp openring /usr/local/bin/
```
# Customize looks
# Customiser l'apparence
From openring's README:
Selon le README de openring:
> This is a tool for generating a webring from RSS feeds, so you can link to other blogs you like on your own blog. It's designed to be fairly simple and integrate with any static site generator. The basic usage is:
>
@ -58,14 +62,19 @@ From openring's README:
> > out.html
> ```
The `in.html` is a template [whence] openring generate the HTML for the feed.
Le fichier `in.html` est un modèle duquel openring génère le HTML pour le flux.
I copied the template from [DeVault's blog][ring-tmpl] (don't worry, it's MIT-licensed),
with a little modification:
Je l'ai copié de [le blog de DeVault][ring-tmpl] (ne vous inquiétez pas, c'est partagé
avec un license MIT),
avec des modifications:
- I wrap it in a `div.wrapper`. The `wrapper` class is a class in minima theme that limit the max width for readability and auto-collapse on smaller devices.
- I use `footer-col` for each class. Since this is also styled by minima, I don't have to worry about it.
- I added a thin border around each article with the following sass (also modified from DeVault's blog)
- J'ai mis le webring dans un `div.wrapper`.
La class `wrapper` est une class dans le thème minima
qui limite le largeur maximum, ce qui aide lisibilité
- J'ai ajouté `footer-col` pour chaque article. Cette classe rendre les articles
en colonne grâce à minima.
- J'ai ajouté une bordure pour les article avec sass
(le code est aussi basé sur celui de DeVault)
```scss
---
@ -91,13 +100,12 @@ with a little modification:
}
```
# Future works?
# Chose à faire?
Currently, I generate the feed manually when I update my blog.
This probably is not a really good idea:
What if I want the webring to be updated even when I'm not active?
A cronjob would probably solve this problem,
but I'll left it as an exercise to the reader ;).
Je génère le flux manuellement quand je mis mon blog à jour en ce moment.
C'est probablement pas une bonne chose si je veux que le webring soit à jour
même quand je ne suis pas actif.
Un cronjob peut résoudre ce problème, mais je le laisse comme exercice pour les lecteurs.
[openring]: https://git.sr.ht/~sircmpwn/openring
[ddvault]: https://drewdevault.com/