From e779d88d6355efe5c6bc36177ed03ad586a3e9fc Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 10 Oct 2021 14:00:53 -0700 Subject: [PATCH] * Fixing URI path issues in template --- api/src/page.rs | 2 +- api/templates/list.html.tera | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/page.rs b/api/src/page.rs index 8987841..7233b4d 100644 --- a/api/src/page.rs +++ b/api/src/page.rs @@ -10,7 +10,7 @@ pub async fn home() -> Template { // WARN: this is just to get the templates to behave but we're still // doing everything the browser for the home page let mut h: HashMap<&'static str, &'static str> = HashMap::new(); - h.insert("script_src", "/js/index.js"); + h.insert("script_src", "index.js"); h.insert("page", "home"); return Template::render("list", &h); diff --git a/api/templates/list.html.tera b/api/templates/list.html.tera index 56b1ceb..91fa5a4 100644 --- a/api/templates/list.html.tera +++ b/api/templates/list.html.tera @@ -6,7 +6,7 @@ Shockrah's Clips - + {% if page == "category" %} @@ -23,7 +23,7 @@ {% endif %} - +