mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 12:11:45 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
26 lines
845 B
HTML
26 lines
845 B
HTML
{{- define "main" -}}
|
|
{{/* Exclude 404 page from search indexing */}}
|
|
<div data-pagefind-ignore class="flex flex-col justify-center">
|
|
<article class="container mx-auto prose prose-slate lg:prose-xl dark:prose-invert">
|
|
<h1 class="lg:text-6xl">{{ i18n "page_not_found" }}</h1>
|
|
|
|
{{/* Suggest recently published pages to the user. */}}
|
|
|
|
<p>{{ i18n "404_recommendations" }}</p>
|
|
|
|
{{ $query := where (where (where (where site.Pages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }}
|
|
{{ $count := len $query }}
|
|
{{ if gt $count 0 }}
|
|
<h2>{{ i18n "user_profile_latest" }}</h2>
|
|
<ul>
|
|
{{ range first 10 $query }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
|
|
</article>
|
|
</div>
|
|
|
|
{{- end -}}
|