From 4aaada38d09811b6ee6a34f55b3a44514efa2aad Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Wed, 6 Sep 2023 18:29:59 +0200 Subject: FIX 404 page --- layouts/404.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index eada35e..754d082 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ define "main"}} -
+

Page not found

@@ -10,17 +10,9 @@ {{ $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 }} -

{{ i18n "user_profile_latest" }}

-
    - {{ range first 10 $query }} -
  • - -

    {{ .Title }}

    - {{ .Summary }}
    - {{ partial "metadata.html" . }} -
  • + {{ range first 5 $query }} + {{ partial "post.html" . }} {{ end }} -
{{ end }}
-- cgit v1.2.3