mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Redirect to real root in 404 page
This commit is contained in:
parent
f18e94f33b
commit
a8741a2f5a
1 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,10 @@ use maud::html;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
asset,
|
asset,
|
||||||
page::cube,
|
page::{
|
||||||
|
cube,
|
||||||
|
MANIFEST,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub async fn handler() -> impl IntoResponse {
|
pub async fn handler() -> impl IntoResponse {
|
||||||
|
@ -20,7 +23,7 @@ pub async fn handler() -> impl IntoResponse {
|
||||||
array::from_fn(|_| {
|
array::from_fn(|_| {
|
||||||
html! {
|
html! {
|
||||||
.frame {
|
.frame {
|
||||||
a href="/" { "404" }
|
a href=(MANIFEST.package.as_ref().unwrap().homepage().unwrap()) { "404" }
|
||||||
}
|
}
|
||||||
.square .black {}
|
.square .black {}
|
||||||
.square .magenta {}
|
.square .magenta {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue