diff --git a/_config.yml b/_config.yml index 75a8371ae7c..029b7e44d2b 100644 --- a/_config.yml +++ b/_config.yml @@ -81,6 +81,10 @@ collections: # 3rd Party Settings # # ----------------------- # +#Search +algolia: + api_key: "ae96d94b201c5444c8a443093edf3efb" + # Twitter twitter_user: balloob twitter_tweet_button: true diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index 6f4dbb2eb8b..44308282321 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -634,3 +634,39 @@ code { border-radius: 0.4em; padding: 0.1em 0.4em; } + + +@media only screen and (max-width: $menu-collapse) { + #not_found { + .page { + text-align: center; + + .search404-container { + margin-bottom: 32px; + + } + } + } +} + +@media only screen and (min-width: $menu-collapse) { + #not_found { + .page { + text-align: center; + margin-bottom: 300px; + + .search404-container { + margin-bottom: 32px; + + #search404 { + width: 420px; + } + } + } + footer { + position: absolute; + bottom: 0; + width: 100%; + } + } +} \ No newline at end of file diff --git a/source/404.html b/source/404.html new file mode 100644 index 00000000000..d69f20e0d43 --- /dev/null +++ b/source/404.html @@ -0,0 +1,16 @@ +--- +layout: page +permalink: /404.html +sidebar: false +feedback: false +body_id: not_found +--- +

Oh no! This page does not exist 😞

+ +
+
+ + + +
+
diff --git a/source/404.markdown b/source/404.markdown deleted file mode 100644 index f982cbd462f..00000000000 --- a/source/404.markdown +++ /dev/null @@ -1,10 +0,0 @@ ---- -# example 404.md - -layout: page -permalink: /404.html ---- - -# Are you lost? - -Hello automator it appears the page you have requested doesn't exist. If you believe this is a mistake then open an issue by clicking [here](https://github.com/home-assistant/home-assistant.io/issues). diff --git a/source/_includes/javascripts/scripts.html b/source/_includes/javascripts/scripts.html index 79868bc88da..fdc6b001081 100644 --- a/source/_includes/javascripts/scripts.html +++ b/source/_includes/javascripts/scripts.html @@ -11,11 +11,22 @@ s.parentNode.insertBefore(g,s)}(document,'script'));