mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
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.
17 lines
683 B
HTML
17 lines
683 B
HTML
{{- 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 -}}
|