fix 404s
This commit is contained in:
parent
ead7032f21
commit
17d52f5b07
1 changed files with 17 additions and 13 deletions
|
|
@ -9,11 +9,14 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
|||
</BaseLayout>
|
||||
|
||||
<script>
|
||||
if (!location.pathname.endsWith("/404.html")) {
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const terminalText = " /not-found";
|
||||
const terminalPrompt = document.querySelector(".terminal-prompt");
|
||||
const delay = 250;
|
||||
|
||||
if (!terminalPrompt) return;
|
||||
|
||||
let i = 0;
|
||||
function typechar() {
|
||||
if (i < terminalText.length) {
|
||||
|
|
@ -23,6 +26,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
|
|||
}
|
||||
typechar();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue