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 +