fix: adjust path variables in html

This commit is contained in:
jabuxas 2025-02-10 23:48:13 -03:00
parent 349723a770
commit f7e861bc44
2 changed files with 21 additions and 9 deletions

View File

@ -31,7 +31,5 @@ fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
#[launch]
fn rocket() -> _ {
rocket::build()
// .mount("/", FileServer::from("static"))
.mount("/", routes![index, dist])
rocket::build().mount("/", routes![index, dist])
}

View File

@ -5,11 +5,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="jabuxas' website" />
<title>jabuxas' hub</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link href="/style.css?version=1" rel="stylesheet" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/dist/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/dist/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/dist/favicon-16x16.png"
/>
<link rel="manifest" href="/dist/site.webmanifest" />
<link href="/dist/style.css?version=1" rel="stylesheet" />
</head>
<body>
@ -17,7 +31,7 @@
<div class="top-level">
<div>
<div class="image-container">
<img src="./images/maybe.jpg" alt="jabuxas' icon" />
<img src="/dist/images/maybe.jpg" alt="jabuxas' icon" />
</div>
<h2>jabuxas</h2>
</div>