Static blog generator sketch

Basic concept

  • Transform set of markdown files into HTML blog
    • Per-article HTML pages
      • Main HTML page with recent articles
      • RSS feed
  • Start by hardcoding webpage template etc
  • Libraries required

Basic logic flow to post:

  1. Add a Markdown file to a directory of posts
  2. Execute a command to parse the directory
  3. Output HTML of Markdown files transformed to HTML and inserted into Jinja template to the filesystem
  4. Use git push to upload to Github pages

Follow-up enhancements:

  • Diff directory of posts against prior state in SQLite to detect any new posts.
    • Alternate option: treat file modification date as post time— n.b. file creation isn't available on Unix systems
  • Emit an RSS feed