about summary refs log tree commit diff
path: root/kittybox-rs/templates
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/templates')
-rw-r--r--kittybox-rs/templates/src/onboarding.rs6
-rw-r--r--kittybox-rs/templates/src/templates.rs8
2 files changed, 8 insertions, 6 deletions
diff --git a/kittybox-rs/templates/src/onboarding.rs b/kittybox-rs/templates/src/onboarding.rs
index 9d0f2e1..5a9f226 100644
--- a/kittybox-rs/templates/src/onboarding.rs
+++ b/kittybox-rs/templates/src/onboarding.rs
@@ -3,8 +3,8 @@ markup::define! {
         h1[style="text-align: center"] {
             "Welcome to Kittybox"
         }
-        script[type="module", src="/static/onboarding.js"] {}
-        link[rel="stylesheet", href="/static/onboarding.css"];
+        script[type="module", src="/.kittybox/static/onboarding.js"] {}
+        link[rel="stylesheet", href="/.kittybox/static/onboarding.css"];
         form.onboarding[action="", method="POST"] {
             noscript {
                 p {
@@ -23,7 +23,7 @@ markup::define! {
                     "Good news though - the code is " b { "open-source AND free software" }
                     " (under GNU AGPLv3) "
                     "and I promise to not obfuscate it or minify it. "
-                    a[href="/static/onboarding.js"] { "Here" }
+                    a[href="/.kittybox/static/onboarding.js"] { "Here" }
                     "'s the link - you can try reading it so you'll be 200% sure "
                     "it won't steal your cookies or turn your kitty into a soulless monster."
                     @markup::raw("<!-- do cats even have souls? I'm not sure. But this code won't steal their souls anyway. -->")
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];