diff options
author | Vika <vika@fireburn.ru> | 2022-05-28 21:05:19 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-06-02 20:59:45 +0300 |
commit | 558c4078fd6b5c10bfbcac826774335904807e39 (patch) | |
tree | aab6adef0954241132d556466a40d0066e6d60ed /kittybox-rs/templates/src/templates.rs | |
parent | ee5b6dca7147c905a79447963761e7cd1f38cabc (diff) | |
download | kittybox-558c4078fd6b5c10bfbcac826774335904807e39.tar.zst |
feat: group endpoints under `.kittybox`
Actually got the idea from https://xeiaso.net/, who groups xer website's endpoints under the `.within` folder.
Diffstat (limited to 'kittybox-rs/templates/src/templates.rs')
-rw-r--r-- | kittybox-rs/templates/src/templates.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kittybox-rs/templates/src/templates.rs b/kittybox-rs/templates/src/templates.rs index 0054c91..b084fbd 100644 --- a/kittybox-rs/templates/src/templates.rs +++ b/kittybox-rs/templates/src/templates.rs @@ -29,10 +29,12 @@ markup::define! { head { title { @title } link[rel="preconnect", href="https://fonts.gstatic.com"]; - link[rel="stylesheet", href="/static/style.css"]; + link[rel="stylesheet", href="/.kittybox/static/style.css"]; meta[name="viewport", content="initial-scale=1, width=device-width"]; - // TODO: link rel= for common IndieWeb APIs: webmention, microsub - link[rel="micropub", href="/micropub"]; // Static, because it's built into the server itself + // Static, because it's built into the server itself + link[rel="micropub", href="/.kittybox/micropub"]; + link[rel="micropub_media", href="/.kittybox/media"]; + // TODO change this once neccesary endpoints are implemented @if let Some(endpoints) = endpoints { link[rel="authorization_endpoint", href=&endpoints.authorization_endpoint]; link[rel="token_endpoint", href=&endpoints.token_endpoint]; |