coryd.dev/src/pages/static/errors/404.html

42 lines
1.4 KiB
HTML

---
title: 404
description: What kind of idiots do you have working here?
permalink: /404/index.html
eleventyExcludeFromCollections: true
excludeFromSitemap: true
---
<div class="hero">
<img
srcset="
{{ globals.cdn_url }}/daac2a48-455f-4b7b-a727-b33868cbb2fc.jpg?class=bannersm&type=webp 256w,
{{ globals.cdn_url }}/daac2a48-455f-4b7b-a727-b33868cbb2fc.jpg?class=bannermd&type=webp 512w,
{{ globals.cdn_url }}/daac2a48-455f-4b7b-a727-b33868cbb2fc.jpg?class=bannerbase&type=webp 1024w
"
sizes="(max-width: 450px) 256px,
(max-width: 850px) 512px,
1024px"
src="{{ globals.cdn_url }}/daac2a48-455f-4b7b-a727-b33868cbb2fc.jpg?class=bannersm&type=webp"
alt="An image Kevin McCallister screaming taken from the movie Home Alone 2."
class="image-banner"
loading="lazy"
decoding="async"
width="720"
height="480"
>
</div>
<h2 style="text-align:center">404</h2>
<p style="text-align:center">What kind of idiots do you have working here?</p>
<p style="text-align:center"><a href="/">Hurry up and skip out on the room service bill!</a></p>
<script>
const track404 = () => {
const referrer = document.referrer || "Unknown referrer";
const userAgent = navigator.userAgent;
const requestedURL = window.location.pathname;
if (window.umami)
umami.track("404 Error", { referrer, user_agent: userAgent, requested_url: requestedURL });
};
document.addEventListener("DOMContentLoaded", track404);
</script>