~lioploum/ploum.net

Static generator for my blog with content
18a05eac — Ploum 5 hours ago
suppression caractères spéciaux pour abonnement newsletter EN
1b1534d3 — Ploum 5 hours ago
suppression de à la newsletter dans le body
6434a239 — Ploum 6 hours ago
lien anglais

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~lioploum/ploum.net
read/write
git@git.sr.ht:~lioploum/ploum.net

You can also use your local clone with git send-email.

# Ploum.net

This repository contains my blog posts and a script used to generate them.

Pour une explication de la philosophie du site en français, voyez:
https://ploum.net/2022-12-04-fin-du-blog-et-derniere-version.html

Posts are separated into "fr" and "en" directories. They all should be called with YY-MM-DD-TITLE.gmi.

## Publish.py

Will goes into "fr" and "en" folders, read all YYYY-MM-DD-title.gmi files and create the following:

1. Gemini version of the blog with index in ../public_gemini
2. Html version ofthe blog with index in ../public_html using page_template.html
3. An atom feed for the blog and each language


There’s a distinction between "new" posts and "old" posts (which are from Wordpress). The reason is to keep the old URL (cool URL never change). So "new" posts are converted to "DATE-SLUG.html" while "old" posts are converted to "SLUG/index.html". But you still can make "old" posts that are more recent than some new ones.

## post-receive.sh

To be put in the distant repository to call publish.py after each git push.
(post-receive is not used on sourcehut. See build.yml instead)

## resize_image.py 

Ensure pictures are not wider than 800px


## convert2gmi.py

This script takes a pelican export from Wordpress and convert it to gemini files. In a perfect world, it should be used only once. But I still keep finding problem and having to regenerate all of the "old" posts.


## send2blog.py

This script take a post and makes a mail out of it (txt+html) to send it to different mailing-list.