No description
Find a file
2024-06-18 10:06:20 -04:00
posts build_a_blog: convert reuse 2024-06-18 10:06:20 -04:00
.build.yml build-a-blog 2024-06-17 19:52:21 -04:00
.gitignore build_a_blog: readme, ignore pycache, cleanup 2024-06-17 23:11:15 -04:00
avatar.png index: avatar, stuff 2024-06-15 12:52:02 -04:00
chalk.min.css build-a-blog 2024-06-17 19:52:21 -04:00
highlight.js.min.css build-a-blog 2024-06-17 19:52:21 -04:00
highlight.min.js build-a-blog 2024-06-17 19:52:21 -04:00
index.html.tmpl style version param 2024-06-17 19:54:00 -04: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 build_a_blog: md convert reuse 2024-06-18 10:02:26 -04:00
README.md build_a_blog: readme, ignore pycache, cleanup 2024-06-17 23:11:15 -04:00
style.css build-a-blog 2024-06-17 19:52:21 -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