Fork of ploum.net's static generator, for my personnal use
Go to file
theo@manjaro b03899bf0d Ignore my script 2023-01-11 21:21:17 +01:00
en Initial commit 2023-01-11 21:17:10 +01:00
files Initial commit 2023-01-11 21:17:10 +01:00
fr Initial commit 2023-01-11 21:17:10 +01:00
.gitignore Ignore my script 2023-01-11 21:21:17 +01:00
LICENSE Initial commit 2023-01-11 21:17:10 +01:00
README Initial commit 2023-01-11 21:17:10 +01:00
atom_post_template.xml Initial commit 2023-01-11 21:17:10 +01:00
atom_template.xml Initial commit 2023-01-11 21:17:10 +01:00
convert2gmi.py Initial commit 2023-01-11 21:17:10 +01:00
email_template.html Initial commit 2023-01-11 21:17:10 +01:00
index.gmi Initial commit 2023-01-11 21:17:10 +01:00
page_template.gmi Initial commit 2023-01-11 21:17:10 +01:00
page_template.html Initial commit 2023-01-11 21:17:10 +01:00
post-receive.sh Initial commit 2023-01-11 21:17:10 +01:00
postindex.gmi Initial commit 2023-01-11 21:17:10 +01:00
publish.py Initial commit 2023-01-11 21:17:10 +01:00
resize_image.py Initial commit 2023-01-11 21:17:10 +01:00
send2blog.py Initial commit 2023-01-11 21:17:10 +01:00

README

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Ploum.net

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

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


Theres 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.