aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/404.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/404.html')
-rw-r--r--layouts/404.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 754d082..46f4883 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,12 +1,8 @@
-{{ define "main"}}
-<div class="mw7 center avenir ph2">
-
- <h1> Page not found</h1>
-
- {{/* Suggest recently published pages to the user. */}}
-
- <p>Perhaps you were looking for one of these?</p>
+{{ 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 }}
@@ -15,6 +11,4 @@
{{ end }}
{{ end }}
-</div>
-
{{ end }}