duck2 / qwkgen

generate my blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qwkgen

qwkgen is a mkfile cobbled together with some templates and 9base utilities to generate my blog.

The program is not configurable. However, the mkfile and the template engine are simple enough to maintain a personal fork.

werc's template.awk is used as the template language. A fork of libsoldout is used as the markdown engine. It is able to render math to inlined base64 png using the bin/latex2png script.

Dependencies

  • A C compiler to build libsoldout.
  • The 9base package or plan9port for mk and rc. (I never tried to run this in Plan 9 itself.)
  • For math, a form of latex, dvipng and optipng.

Usage

Clone with git clone --recursive.

mk gets the ball rolling. The default output directory is _site/.

Place posts in lib/*.md with a date prefix in YYYY-MM-DD format. An example is 2016-10-10-the_perils_of_being_a_horse.md.

Tweak the mkfile and the templates to your interest.

About

generate my blog


Languages

Language:C 55.0%Language:JavaScript 39.2%Language:Smarty 2.2%Language:Roff 1.5%Language:Makefile 0.9%Language:CSS 0.6%Language:Awk 0.4%Language:Shell 0.2%