add: customizable what slug
This commit is contained in:
parent
baef84adf9
commit
25579c5195
3 changed files with 6 additions and 2 deletions
|
@ -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 <https://tetratto.com/settings#/account/billing>.
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
(text "new"))
|
||||
|
||||
(a
|
||||
("href" "/what")
|
||||
("href" "/{{ what_page_slug }}")
|
||||
(text "what"))
|
||||
|
||||
(a
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue