Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions assets/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />

<title>404 - Page Not Found</title>

<!-- Custom styles for this template -->
<link href="/style.css" rel="stylesheet" />

<style>
h1 {
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
}
</style>

<script>
if (location.pathname.match(/\/\d{4}\/\d{2}\/\d{2}\//)) {
location.pathname = location.pathname.replace(
/\/(\d{4})\/(\d{2})\/(\d{2})\//,
"/$1-$2-$3-"
);
}
</script>
</head>

<body>
<h1>404 - Page Not Found</h1>
</body>
</html>
1 change: 1 addition & 0 deletions zine.ziggy
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ Site {
.layouts_dir_path = "layouts",
.assets_dir_path = "assets",
.static_assets = [
"404.html"
],
}