* Fixing URI path issues in template
This commit is contained in:
parent
3905f0f3d3
commit
e779d88d63
@ -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);
|
||||
|
@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
||||
<title>Shockrah's Clips</title>
|
||||
<link rel="shortcut icon" type="image/png" href="/static/favicon.png"/>
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
||||
{% if page == "category" %}
|
||||
<meta property="og:title" content="">
|
||||
<meta property="og:site_name" content="">
|
||||
@ -23,7 +23,7 @@
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content="/favicon.png">
|
||||
{% endif %}
|
||||
<script src="{{script_src}}"></script>
|
||||
<script src="/js/{{script_src}}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
Loading…
Reference in New Issue
Block a user