konst-aa / blog

My blog

Home Page:https://ka.dreadmaw.industries/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog-generator

This repo is the home of my Awesome Blog

As normal-person tools such as Jekyll are Not Invented Here, I wrote a scheme script to manage post categories, descriptions, the landing page, etc. Note that the script doesn't template.

The generator (generate.sh) uses the above + sed and pandoc to write static HTML.

This script can:

  • parse post descriptions from markdown, then add them to posts.scm. blog-gen spoiler posts.scm post.md, (It also writes the post without the spoiler to stdout, so one can template without the spoiler tag)
  • generate a homepage of blog posts, along with pages for each category. blog-gen index posts.scm (requires spoilers!)
  • generate markdown for related/"recommended" posts (writes to stdout). One can then append that to the actual post. blog-gen related posts.scm post.md (requires spoilers!)

To build: nix develop, then make blog

About

My blog

https://ka.dreadmaw.industries/

License:MIT License


Languages

Language:Scheme 54.0%Language:Nix 16.9%Language:CSS 14.8%Language:Shell 11.8%Language:HTML 1.3%Language:Makefile 1.2%