From 0f58a77354cb01812c72c3e9e3a7203309825beb Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 15 Apr 2020 23:24:51 +0200 Subject: [PATCH] 404 Page redesign --- assets/search.js | 4 ++++ layouts/404.html | 22 ++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/assets/search.js b/assets/search.js index 0393d2c..1feb701 100644 --- a/assets/search.js +++ b/assets/search.js @@ -7,6 +7,10 @@ const input = document.querySelector('#book-search-input'); const results = document.querySelector('#book-search-results'); + if (!input) { + return + } + input.addEventListener('focus', init); input.addEventListener('keyup', search); diff --git a/layouts/404.html b/layouts/404.html index 1068ba6..3f76ed4 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,13 +4,27 @@ {{ partial "docs/html-head" . }} {{ partial "docs/inject/head" . }} + + -
+
-

404 Not Found

- Go Home +

404

+

Page Not Found

+

+ {{ .Site.Title }} +

@@ -18,4 +32,4 @@ {{ template "_internal/google_analytics_async.html" . }} - \ No newline at end of file +