From 4cf3f2e6297878a4a6303a886e24addd5cf4580f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Wed, 6 Sep 2023 21:44:11 +0200 Subject: 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. --- layouts/404.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'layouts/404.html') 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"}} -
- -

Page not found

- - {{/* Suggest recently published pages to the user. */}} - -

Perhaps you were looking for one of these?

+{{ 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 }} -
- {{ end }} -- cgit v1.2.3