add: customizable what slug

This commit is contained in:
trisua 2025-07-20 03:03:48 -04:00
parent baef84adf9
commit 25579c5195
3 changed files with 6 additions and 2 deletions

View file

@ -43,6 +43,10 @@ fn default_context(data: &DataClient) -> Context {
&std::env::var("NAME").unwrap_or("Attobin".to_string()),
);
ctx.insert("tetratto", &data.host);
ctx.insert(
"what_page_slug",
&std::env::var("WHAT_SLUG").unwrap_or("what".to_string()),
);
ctx
}