Personal website.
Go to file
2022-06-29 16:01:31 +00:00
src more doc comments 2021-11-26 11:08:59 +02:00
static add bicycle page 2022-06-29 17:00:07 +01:00
templates add bicycle page 2022-06-29 17:00:07 +01:00
.gitignore add static/misc to ignore list 2022-06-29 17:00:29 +01:00
build.sh update build script 2021-11-21 16:36:58 +02:00
Cargo.lock bump version 2021-11-23 20:35:43 +02:00
Cargo.toml bump version 2021-11-23 20:35:43 +02:00
README.md fix source path 2021-11-26 11:20:06 +02:00

mycelial.technology

glyph's website

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

nyf

src/lib.rs

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

src/bin/generate_rss.rs

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.

License

CC BY-NC-SA 4.0