No description
  • JavaScript 75%
  • HTML 9.7%
  • Python 6.4%
  • CSS 5%
  • XSLT 1.9%
  • Other 2%
Find a file
2025-05-03 20:55:44 +03:00
posts Inline others' buttons too, add html inlining post 2024-09-27 01:45:18 +03:00
public Add the GP webring links 2025-05-03 20:55:44 +03:00
templates Add the GP webring links 2025-05-03 20:55:44 +03:00
.gitignore Add an on-disk cache for css_inliner.py 2024-04-18 19:50:18 +03:00
css_inliner.py Inline others' buttons too, add html inlining post 2024-09-27 01:45:18 +03:00
Makefile Inline others' buttons too, add html inlining post 2024-09-27 01:45:18 +03:00
README.md Add new button, add h-entry tags 2024-09-28 02:06:51 +03:00
syntax_highlighter.py Inline others' buttons too, add html inlining post 2024-09-27 01:45:18 +03:00
templater.awk Remove alt stylesheets, link neon.moe stylesheets, add code fonts 2021-09-11 03:42:12 +03:00

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.