From 4d53954be9a98d67531794956f6376bba01af86d Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 27 Aug 2023 11:50:19 +0530 Subject: added 404 page --- layouts/404.html | 13 +++++++++++++ layouts/_default/single.html | 4 ++++ layouts/partials/header.html | 20 +++++++++++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index e69de29..8bcffdd 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -0,0 +1,13 @@ +{{ define "main" }} +
+

(404) The page you requested was not found.

+ + {{ if .Site.Params.header404 }} + {{ index .Site.Params.header404 1 }} + {{ end }} + +

+ Go back home +

+
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e0e8308..1ecd70a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,7 @@ {{ define "main" }} + {{ if .Params.headerImg }} + {{ if .Params.headerAlt }}{{ .Params.headerAlt }}{{ else }}Header Image{{ end }} + {{ end }} + {{ .Content }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ba1869b..0d8ac71 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,7 +2,25 @@