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 5133d5e096 Merge pull request 'Add Japanese page' (#5) from japanese_page into main 2 days ago
src more doc comments 4 days ago
static add svendsolar art and co-op cloud link 4 days ago
templates add japanese page 2 days ago
.gitignore add svendsolar art and co-op cloud link 4 days ago
Cargo.lock bump version 6 days ago
Cargo.toml bump version 6 days ago
README.md fix source path 4 days ago
build.sh update build script 1 week ago

README.md

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