website

Personal website
git clone https://github.com/michaelneuper/website.git
README | Files | Log | Refs

commit 18cea2c1a443fdbd056523a68ceb80ed7d1d7b0a
parent 24b32f1eb7144108c77db803e079d297ad64b09a
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Wed,  8 Nov 2023 11:11:29 +0200

Add 404

Diffstat:
Acontent/posts/math.md | 17+++++++++++++++++
Alayouts/404.html | 9+++++++++
Mnetlify.toml | 5+++++
3 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/content/posts/math.md b/content/posts/math.md @@ -0,0 +1,16 @@ +--- +title: "Math" +date: 2023-11-07T10:28:00+02:00 +description: Generic description +categories: [] +tags: [] +toc: true +math: true +draft: false +--- +Generic summary +<!--more--> + +$$ +e^{i\pi} + 1 = 0 +$$ +\ No newline at end of file diff --git a/layouts/404.html b/layouts/404.html @@ -0,0 +1,9 @@ +{{ define "main" }} + <main id="main"> + <div> + <h1 id="title">404</h1> + <h2>You once were found, but now you're lost :(</h2> + <h2><a href="{{ "" | relURL }}">Go Home</a></h2> + </div> + </main> +{{ end }} diff --git a/netlify.toml b/netlify.toml @@ -13,6 +13,11 @@ command = """\ hugo --gc --minify \ """ +[[redirects]] +from = "/*" +to = "/404.html" +status = "404" + [[headers]] for = "/*" [headers.values]