diff --git a/content/404.md b/content/404.md new file mode 100644 index 0000000..6c77a7c --- /dev/null +++ b/content/404.md @@ -0,0 +1,12 @@ ++++ +title = "404'd!" +noindex = true +layout = "page" +timeless = true +comments = false ++++ + +We're not sure what you were looking for, but it's not here. +![](/images/nothing-to-see-here.gif) + +Maybe head back to the [index](/posts/) and try again? \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bf154b8..099efe0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,7 +3,7 @@ -{{ if .Site.Params.noindex }} {{ end }} +{{ if or (.Site.Params.noindex) (.Params.noindex) }} {{ end }} {{ partialCached "favicon" . }} {{ partial "opengraph" . }} diff --git a/netlify.toml b/netlify.toml index 2204b76..16c4250 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,4 +5,9 @@ HUGO_VERSION = "0.111.3" [context.production] - command = "hugo" \ No newline at end of file + command = "hugo" + +[[redirects]] + from = "/*" + to = "/404/" + status = 404 \ No newline at end of file diff --git a/static/images/nothing-to-see-here.gif b/static/images/nothing-to-see-here.gif new file mode 100644 index 0000000..42c3b3b Binary files /dev/null and b/static/images/nothing-to-see-here.gif differ