test custom 404

This commit is contained in:
casual 2024-09-03 22:39:38 +03:00
parent 8f7f88c297
commit e27bbe3424

View File

@ -1,93 +1,8 @@
{{ define "main"}}
<main id="main" tabindex="-1">
<article class="post h-entry">
<div class="post-header">
<header>
<h1 class="p-name post-title"><a href="/">Error 404</a></h1>
</header>
<meta property="og:url" content="http://localhost:1313/404/">
<meta property="og:site_name" content="Casual Blog">
<meta property="og:title" content="[Error 404](/)">
<meta property="og:description" content="Hi! Sorry but link doesnt exist yet.
It may be still in work or not posted yet.
If this link doesnt work for 1+ weeks, please contact me!">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="[Error 404](/)">
<meta name="twitter:description" content="Hi! Sorry but link doesnt exist yet.
It may be still in work or not posted yet.
If this link doesnt work for 1+ weeks, please contact me!">
<div class="post-info noselect">
<a class="post-hidden-url u-url" href="http://localhost:1313/404/">http://localhost:1313/404/</a>
<a href="http://localhost:1313/" class="p-name p-author post-hidden-author h-card" rel="me">Casual</a>
<div class="post-taxonomies">
</div>
</div>
</div>
<script>
document.querySelector(".toc").addEventListener("click", function () {
if (event.target.tagName !== "A") {
event.preventDefault();
if (this.open) {
this.open = false;
this.classList.remove("expanded");
} else {
this.open = true;
this.classList.add("expanded");
}
}
});
</script>
<div class="content e-content">
<p>Hi! Sorry but link doesnt exist yet.</p>
<p><img src="https://media1.tenor.com/m/3rAtEcJ09BcAAAAC/cat-loading.gif" alt=""></p>
<!-- TODO download, upscale, host here - https://tenor.com/view/cat-loading-error-gif-19814836-->
<p>It may be still in work or not posted yet.</p>
<p>If this link doesnt work for 1+ weeks, please contact me!</p>
<!-- &nbsp; -->
<!-- &nbsp; -->
<!-- -->
<!-- [Take me home!](/) -->
<!-- thanks https://moonbooth.com/hugo/custom-404/ for guide -->
</div>
</article>
</main>
<main id="main">
<div>
<h1 id="title"><a href="{{ .Site.BaseURL | relLangURL }}">Go Home</a></h1>
Sorry, this Page is not available.
</div>
</main>
{{ end }}