diff --git a/README.md b/README.md index 6ce52f1..ac6b8cf 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ So if your key was "ABCD123", you would have: API_KEY=ABCD123 ``` -Once this file is in place, you can safely run the server. You can also optionally add a `PORT` variable in there to change the port number. +Once this file is in place, you can safely run the server. You can also optionally add a `PORT` variable in there to change the port number. If you don't change the port, you can find the server at `http://localhost:9119`. It's important to note that you're fairly limited on app storage without the Tetratto developer pass. You can manage your billing settings at . diff --git a/app/templates_src/components.lisp b/app/templates_src/components.lisp index 2381f24..75b6938 100644 --- a/app/templates_src/components.lisp +++ b/app/templates_src/components.lisp @@ -14,7 +14,7 @@ (text "new")) (a - ("href" "/what") + ("href" "/{{ what_page_slug }}") (text "what")) (a diff --git a/src/routes.rs b/src/routes.rs index 2cbd3aa..bb899b9 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -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 }