Merge pull request #41 from ZeusWPI/404

404
This commit is contained in:
lorin 2016-08-27 00:40:44 +02:00 committed by GitHub
commit 5142808069
5 changed files with 15 additions and 0 deletions

9
content/404.erb Normal file
View file

@ -0,0 +1,9 @@
---
title: 404 - Page not found
---
<img src="assets/images/404.png" alt="" class="img-center"/>
<p class="has-text-centered">
- Page not found -
</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View file

@ -0,0 +1,4 @@
.img-center {
display:block;
margin:auto;
}

View file

@ -18,3 +18,4 @@ $family-sans-serif: 'Open Sans', sans-serif;
@import "includes/cammie"; @import "includes/cammie";
@import "includes/events"; @import "includes/events";
@import "includes/general"; @import "includes/general";
@import "includes/404";

View file

@ -1,6 +1,7 @@
module AssetHelper module AssetHelper
def asset(type, identifier) def asset(type, identifier)
{ {
img: "<img src='/assets/images/#{identifier}'/>",
js: "<script src='/assets/scripts/#{identifier}.js'></script>", js: "<script src='/assets/scripts/#{identifier}.js'></script>",
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>" css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
}[type] }[type]