From 4a826ff2748eafdbf63dd0547706ed7dc7ed3d76 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 9 Nov 2023 17:49:27 +0100 Subject: Search page --- layouts/404.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'layouts/404.html') diff --git a/layouts/404.html b/layouts/404.html index c375edb..af1122f 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,14 +5,12 @@

{{ .Title }}

-

- Perhaps you were looking for one of these? -

+

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

+

Pages recently edited

{{ end }} + +

+ + Not there? Try using the search page. +

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