diff --git a/content/404.md b/content/404.md new file mode 100644 index 0000000..403a3da --- /dev/null +++ b/content/404.md @@ -0,0 +1,10 @@ +--- +outputs: + - html +url: "/404.html" +title: "Error 404 (Not Found)" +layout: "404" +--- +You have requested a page that was not found on this server. + +If you are sure you spelled the URL correctly and expected it to work, I or someone else might have made made a mistake. Let me know the URL and how you found it; [here's my contact info](https://seirdy.one/about/#location-seirdy-online). diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/_default/404.html b/layouts/_default/404.html new file mode 100644 index 0000000..25ac8d6 --- /dev/null +++ b/layouts/_default/404.html @@ -0,0 +1,80 @@ + + + + + + +{{ .Title }} +{{ if not (in site.BaseURL ".onion") -}} +{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }} +{{- printf `` $icon_svg.RelPermalink | safeHTML }} +{{- end }} +{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }} +{{- printf `` $icon_192.RelPermalink | safeHTML -}} +{{ $favicon := resources.Get "/favicon.png" -}} +{{ $favicon_base64 := $favicon.Content | base64Encode }} +{{ printf `` $favicon_base64 | safeHTML }} + + + + +{{- $resources := slice -}} +{{- $resources = $resources | append (resources.Get "/css/main.css") -}} +{{ $dark := .Site.Params.dark | default "auto" -}} +{{- if not (eq $dark "off") -}} +{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} +{{- end -}} +{{ $resources = $resources | append (resources.Get "css/print.css" | resources.ExecuteAsTemplate "print.css" .) -}} +{{- $css := $resources | resources.Concat "css/style.css" | minify -}} + +{{ hugo.Generator }} + + +
+ +
+
+

{{ .Title }}

+ {{ partial "processed-content.html" . -}} +
+ + +