From 0b60f218c1cf0aac57473e0643aedfad1698b5e4 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 20 Oct 2023 15:13:15 +0200 Subject: 404 with simpler content --- layouts/404.html | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 46f4883..8855dfb 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,14 +1,36 @@ {{ define "hero" }} -{{ partial "hero.html" (dict "Title" .Title "Content" "Perhaps you were looking for one of these?") }} {{ end }} -{{ define "main"}} - {{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }} - {{ $count := len $query }} - {{ if gt $count 0 }} - {{ range first 5 $query }} - {{ partial "post.html" . }} - {{ end }} - {{ end }} +{{ define "main" }} +
+

{{ .Title }}

+ +

+ Perhaps you were looking for one of these? +

+ {{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }} + {{ $count := len $query }} + {{ if gt $count 0 }} +

Pages recently edited

+ + {{ end }} +
{{ end }} -- cgit v1.2.3