Skip to content
Browse files

Improve 404 page

  • Loading branch information...
1 parent 9e6b1b3 commit 08c1dc572e04c1ef8d08ea5984920e2977bec38c @bogdan committed
Showing with 26 additions and 11 deletions.
  1. +7 −1 404.html
  2. +10 −0 _includes/search.html
  3. +1 −10 _layouts/default.html
  4. +4 −0 css/default.css
  5. +4 −0 css/default.sass
View
8 404.html
@@ -1,4 +1,10 @@
---
layout: default
+title: Not Found
---
-<h3>not found</h3>
+<div class="not-found">
+
+ <h2>Not Found</h2>
+
+ {% include search.html %}
+</div>
View
10 _includes/search.html
@@ -0,0 +1,10 @@
+<form method="get" id="searchform" action="">
+ <input type="text" placeholder="Search keywords" name="s" id="searchbox"/>
+ <input type="submit" class="submitbutton" value="Find" />
+</form>
+<script>
+ $('#searchform').submit(function(event) {
+ event.preventDefault();
+ window.location.href = "http://google.com/search?q=site:gusiev.com " + $('#searchbox').val();
+ });
+</script>
View
11 _layouts/default.html
@@ -80,16 +80,7 @@
</div>
<div class="sidebarbox">
<h2>Search</h2>
- <form method="get" id="searchform" action="">
- <input type="text" placeholder="Search keywords" name="s" id="searchbox"/>
- <input type="submit" class="submitbutton" value="Find it" />
- </form>
- <script>
- $('#searchform').submit(function(event) {
- event.preventDefault();
- window.location.href = "http://google.com/search?q=site:gusiev.com " + $('#searchbox').val();
- });
- </script>
+ {% include search.html %}
</div>
<div class="sidebarbox tag-cloud">
<h2>Browse by tags</h2>
View
4 css/default.css
@@ -61,6 +61,10 @@ ul li {
ul li ul li {
list-style: circle; }
+.not-found {
+ text-align: center;
+ margin: 100px 0; }
+
.recent-posts {
width: 100%; }
.recent-posts ul {
View
4 css/default.sass
@@ -70,6 +70,10 @@ ul
ul li
list-style: circle
+.not-found
+ text-align: center
+ margin: 100px 0
+
.recent-posts
width: 100%

0 comments on commit 08c1dc5

Please sign in to comment.
Something went wrong with that request. Please try again.