feat: add 404 error page layout and update topbar for 404 handling
This commit is contained in:
6
layouts/404.html
Normal file
6
layouts/404.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1 class="dynamic-title">404: Page not found</h1>
|
||||
<div class="content">
|
||||
<blockquote class="prompt-danger"><p>{{ i18n "not_found.statement" }}</p></blockquote>
|
||||
</div>
|
||||
{{ end }}
|
@ -59,7 +59,7 @@
|
||||
<div id="topbar-title">
|
||||
{{ if eq .Layout "home" }}
|
||||
{{- .Site.Title -}}
|
||||
{{ else if or (eq .Type "tabs") (eq .Kind "page") }}
|
||||
{{ else if or (eq .Type "tabs") (eq .Kind "page") (eq .Kind "404") }}
|
||||
{{- T (printf "tabs.%s" (path.Base $url)) | default .Title -}}
|
||||
{{ else }}
|
||||
{{- T (printf "layout.%s" .Layout) | default (.Layout | title) -}}
|
||||
|
Reference in New Issue
Block a user