No description
Find a file
Collin Lefeber 25170c309b
Some checks failed
/ build (push) Failing after 33s
add forgejo cicd
2024-11-25 16:51:45 -05:00
.forgejo/workflows add forgejo cicd 2024-11-25 16:51:45 -05:00
posts migrate srht 2024-11-22 17:41:46 -05:00
public public dir 2024-11-22 15:39:52 -05:00
.gitignore public dir 2024-11-22 15:39:52 -05:00
.gitlab-ci.yml cicd: public artifacts 2024-11-22 15:41:15 -05:00
bench.sh build_a_blog: bench, main errors 2024-06-19 15:34:10 -04:00
index.html.tmpl bluesky 2024-11-22 16:19:48 -05:00
index.xml.tmpl build-a-blog 2024-06-17 19:52:21 -04:00
LICENSE license 2024-06-15 12:28:33 -04:00
main.py public dir 2024-11-22 15:39:52 -05:00
README.md build_a_blog: readme, ignore pycache, cleanup 2024-06-17 23:11:15 -04:00

cfebs.srht.site

A blog generator.

Usage

Put posts in ./posts as .md files.

Add metadata to the head of each post file.

Example:

Title:  My post
Date:   2024-06-17T22:51:28-04:00
---
Now I'll start my _amazing_ markdown post

Run python3 ./main.py to regenerate the site.

Templates

Also required are two template files: index.html.tmpl, index.xml.tmpl

index.html.tmpl used for index and each post

  • Must contain a ${content} variable where list of posts and post content will be replaced.

index.xml.tmpl used for RSS

  • Can be used verbatim

TODO

  • Do not hard-code domain or posts location
  • Make templates examples that user has to move to locations