aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/404.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 21:44:11 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 21:44:11 +0200
commit4cf3f2e6297878a4a6303a886e24addd5cf4580f (patch)
tree193599c81185bda2876a9a9826e7ec4c4499e994 /layouts/404.html
parent4aaada38d09811b6ee6a34f55b3a44514efa2aad (diff)
downloadhugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.tar.gz
hugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.tar.bz2
hugo-minimalist-theme-4cf3f2e6297878a4a6303a886e24addd5cf4580f.zip
Simplify and consolidate page styles
Use the section template instead of defining a new page type for the about page. In general I could build on pieces of markdown for each subsection.
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 }}