Personal website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
glyph 6c55c7f626 Merge pull request 'Update reading lists' (#8) from book_manga_updates into main 3 weeks ago
src more doc comments 7 months ago
static add svendsolar art and co-op cloud link 7 months ago
templates add tsing and yotsuba 3 weeks ago
.gitignore add svendsolar art and co-op cloud link 7 months ago
Cargo.lock bump version 7 months ago
Cargo.toml bump version 7 months ago fix source path 7 months ago update build script 7 months ago

glyph's website

Handwritten CSS and HTML, images, an HTML splicer and an RSS generator.



An opinionated, custom-built HTML splicer. It reads HTML templates, splices them into a base template and writes the output.

Templates are expected at ./templates and output is written to ./site. The ./site directory will be created if it doesn't exist.

A base template is expected at ./templates/base.html. It must contain two tags: [[ title ]] and [[ content ]].

The root index template is expected at ./templates/index.html. All other templates are expected to be in sub-directories; for example: ./templates/plants/index.html or ./templates/fungi/entomopathogens.html.

The splicer crawls the sub-directories of ./templates, reads each HTML file, splices it into the [[ content ]] tag of the base HTML template and writes the output to the ./site directory (preserving the sub-directory structure). The contents of the <h2> element are spliced into the [[ title ]] tag of the base HTML template for each sub-directory template.

RSS Generator


A custom RSS generator. It crawls the template sub-directories containing articles for syndication, extracts relevant information and writes the items to ./static/feed.rss.