mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
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.
This commit is contained in:
16
layouts/404.html
Normal file
16
layouts/404.html
Normal file
@@ -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) -}}
|
||||
<script>document.getElementById("main").setAttribute("currentMenuItemIndex", "{{- (sub .ID 1) -}}")</script>
|
||||
{{- end -}}
|
||||
<div class="container">
|
||||
{{- partial "nav.html" . -}}
|
||||
</div>
|
||||
<article class="info">
|
||||
<p class="error">⛝ <u>404</u> page not found ⛝</p>
|
||||
<p class="error">⛝ <u>404</u> page not found ⛝</p>
|
||||
<p class="error">⛝ <u>404</u> page not found ⛝</p>
|
||||
</article>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user