From 1ac67f17ae495ab2a7ab2440c1b70b11454abd25 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Wed, 1 Nov 2023 23:09:27 +0800 Subject: [PATCH] feat(404.html): add 404 page layout The 404.html file is a new file added to the layouts directory. This file defines the layout for the 404 page. It includes a container div, a navigation partial, and an article element with three paragraphs displaying the "404 page not found" message. This layout will be used when a user navigates to a non-existent page on the website. --- layouts/404.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/404.html diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..687f625 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,16 @@ +{{- define "main" -}} + {{- $params := .Scratch.Get "params" -}} + {{- $currentPage := . -}} + {{- with partial "function/currentMenuItem.html" . -}} + {{- partial "resources/imageJSON.html" (dict "Path" .Name "Page" $currentPage) -}} + + {{- end -}} +
+ {{- partial "nav.html" . -}} +
+
+

404 page not found ⛝

+

404 page not found ⛝

+

404 page not found ⛝

+
+{{- end -}}