src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
config.yaml | ||
README.md |
Tyrel's Rust Static Site Generator
Links
Configuration
config.yaml
links.yaml
template
htmlstatic
directory
example: config.yaml
output_dir: public
links:
source: data/links/links.yaml
template: templates/links/links.html
static_dir: static/
example: links.yaml
config:
title: Where to find Tyrel Souza
name: Tyrel Souza
description: Software Engineer, gamer, tech-enthusiast, ham, pilot, father
avatar: loupe.jpg
background: moroccan-flower-dark.png
background_opacity: 0.7
links:
- title: Sites
links:
- text: Blog
icon: fa fa-blog
href: https://tyrel.dev
- title: Social
- text: Mastodon
rels: me
icon: fa fa-mastodon
href: https://mastodon.social/@tyrel
- title: Gaming
- text: Switch Friendcode
icon: fa-solid fa-gamepad
copy: "SW-1711-7753-4091"
example template.html
This is a jinja template (uses the rust crate minijinja) that has any variable in the links.yaml
available as context variables.
Docs will come some day. TODO: Docs
static dir
This is optional, but everything inside will be copied directly next to the index.html
in the links
directory, put things like css or avatar images here.
Debating on manually needing to specify a list of files in config:
but not sold on that yet.