Skip to content

Commit

Permalink
[404] Handle 404 not found nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Tunius committed May 26, 2015
1 parent d06d7b2 commit 2a7eff3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.rb
Expand Up @@ -32,6 +32,11 @@ def data(name)
end
end

not_found do
status 404
slim :not_found
end

# Some special cases for the routing
#

Expand Down
15 changes: 15 additions & 0 deletions views/not_found.slim
@@ -0,0 +1,15 @@
css:
#search form {
height: 160px
}

section.title.container.about-section
article.row
.col-lg-7.col-sm-12.col-xs-10
h1 404, This place doesn't seem to exist
h2 If you are looking for a pod try searching for it

== partial "search-templates"
== partial "search"

== partial "results"

0 comments on commit 2a7eff3

Please sign in to comment.