* script src=/static/dist/budle.js where required
* page module no longer sets 'script_src'
This commit is contained in:
@@ -30,7 +30,6 @@ pub fn default_map() -> HashMap<&'static str, String> {
|
||||
#[get("/")]
|
||||
pub async fn home() -> Template {
|
||||
let mut h = default_map();
|
||||
h.insert("script_src", String::from("index.js"));
|
||||
h.insert("page", String::from("home"));
|
||||
h.insert("title", SITENAME.clone());
|
||||
|
||||
@@ -40,7 +39,6 @@ pub async fn home() -> Template {
|
||||
#[get("/category/<cat..>")]
|
||||
pub async fn category(cat: PathBuf) -> Template {
|
||||
let mut h = default_map();
|
||||
h.insert("script_src", String::from("category.js"));
|
||||
h.insert("page", String::from("category"));
|
||||
|
||||
// Opengraph meta tags bro
|
||||
|
||||
Reference in New Issue
Block a user