Files
pages/templates/pages/not_found.gohtml
T
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

9 lines
1.8 KiB
Go Template

{{ define "not_found.gohtml" }}<!doctype html>
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>404 · {{ .WikiName }}</title><link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"></head>
<body class="mode-view"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div><nav>{{ range .NavItems }}<a href="{{ .ResolvedHref }}">{{ .Label }}</a>{{ end }}</nav>{{ template "auth-menu" . }}</header>
<main class="container not-found"><p class="not-found-code">404</p><h1>{{ T "not_found.title" }}</h1><p>{{ T "not_found.message" }}</p><p class="not-found-path"><code>{{ .MissingPath }}</code></p>
<p><a class="button" href="/e/-{{ .MissingPath }}">{{ T "not_found.create" }}</a></p>
{{ if .Suggestions }}<section><h2>{{ T "not_found.suggestions" }}</h2><ul>{{ range .Suggestions }}<li><a href="{{ .Path }}">{{ .Path }}</a></li>{{ end }}</ul></section>{{ else if .SuggestionQuery }}<p class="muted">{{ T "not_found.no_suggestions" }}</p>{{ end }}
<form class="not-found-search" action="/v/search" method="get"><input name="q" value="{{ .SuggestionQuery }}" placeholder="{{ T "search.global_placeholder" }}"><button type="submit">{{ T "search.submit" }}</button></form></main>
<style>.not-found{max-width:48rem;margin:clamp(3rem,12vh,8rem) auto}.not-found-code{font-size:clamp(4rem,14vw,9rem);font-weight:800;line-height:.9;color:var(--accent);margin:0}.not-found-path{padding:.8rem 1rem;background:var(--surface,var(--bg));border:1px solid var(--border);overflow-wrap:anywhere}.not-found-search{display:flex;gap:.5rem;max-width:32rem}.not-found-search input{flex:1}.not-found li{margin:.35rem 0}</style></body></html>{{ end }}