Go to file
2023-10-14 23:26:45 -04:00
data rename all the things 2023-10-14 14:10:23 -04:00
src readme 2023-10-14 23:23:58 -04:00
static rename some parts 2023-10-14 14:20:03 -04:00
templates rename some parts 2023-10-14 14:20:03 -04:00
.gitignore ignore 2023-10-14 14:04:46 -04:00
Cargo.lock restructure 2023-10-14 22:46:32 -04:00
Cargo.toml restructure 2023-10-14 22:46:32 -04:00
config.yaml restructure 2023-10-14 22:46:32 -04:00
README.md more readme 2023-10-14 23:26:45 -04:00

Tyrel's Rust Static Site Generator

Configuration

  • config.yaml
  • links.yaml`
  • template html
  • static 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

Example code Here

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.

Blog - Coming Soon