No description
- JavaScript 75%
- HTML 9.7%
- Python 6.4%
- CSS 5%
- XSLT 1.9%
- Other 2%
| posts | ||
| public | ||
| templates | ||
| .gitignore | ||
| css_inliner.py | ||
| Makefile | ||
| README.md | ||
| syntax_highlighter.py | ||
| templater.awk | ||
blog
This repository contains my blog, served at https://blog.neon.moe/
at the time of writing. The HTML is built by running make -k. Requires at least make and awk. Semi-optionally* also
python and the libraries pygments (for syntax highlighting) and
fontTools (for resource inlining).
* As in, I think the articles should be readable even without.
Notes
Here are notes that I will need later, when trying to figure out how everything works:
- The templating system first pastes the post inside the template/* file, then copies over fields from the post's csv.
- The csv's lines 1-6 are in use by the template/* files.
Todo
- Add some logic in css_inliner so that cleaning the cache manually isn't needed so often (compare timestamps with the source files?)
- Add width and height attributes to images automatically, unless they're set manually. Just match the source image.
- Add optimization steps for other resources than fonts as well, pngs and jpegs at least could be optimized, maybe resized to some maximum if they're too big.
- Excluding fonts that are not used on the page would be neat too, but might require too much work.