Skip to content

Commit

Permalink
Adds 404 pages!
Browse files Browse the repository at this point in the history
  • Loading branch information
groundh0g committed Mar 1, 2016
1 parent 8b05da0 commit 70451bd
Show file tree
Hide file tree
Showing 37 changed files with 64,839 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jaytch:
is built from the ground up to support Jekyll 3.x and Bootstrap 3.x,
while targeting the dependencies of GitHub Pages.
page_404: tweet # one of: badge | shrug | tweet | search | milk ...
page_404: sticky # one of: badge | droids | glass | link | milk | potty | shrug | sticky | tweet | zork
tweetHash: "jaytch #blogs #OSS" # don't hash first tag
tweetShoutOut: "GetJaytch"

Expand Down Expand Up @@ -97,6 +97,7 @@ jaytch:
"Hosting on GitHub Pages|/docs/hosting-on-github-pages",
"Using Author Bios|/docs/using-author-bios",
"Frameworks, Themes, & Templates|/docs/layouts-frameworks-themes-and-templates",
"Specifying a 404 Page|/docs/specifying-a-404-page",
"---",
"Frequently Asked Questions|/docs/faqs"
]
Expand Down
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/droids.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>These Aren't the Droids You're Looking For!</h2>

<p>You have discovered a page that doesn't exist. Don't panic, though. We're looking for it.</p>

<p>You can phone a friend, or just click one of the links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/droids.png" alt="404 droids" /></p>

</div>
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/glass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>Oh, No! You Broke the Site!</h2>

<p>What a pane! You have discovered a page that doesn't exist. I hope this doesn't shatter your trust in us.</p>

<p>Try clicking one of the links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/glass.png" alt="404 shattered glass" /></p>

</div>
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>Great Scott!</h2>

<p>This is terrible! You have discovered a dead link.</p>

<p>Try clicking one of the other links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/link.png" alt="404 dead link" /></p>

</div>
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/milk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>Oops! File Not Found!</h2>

<p>You have discovered a page that doesn't exist. Don't panic, though. We're looking for it.</p>

<p>While you wait, just enjoy the fresh dairy air and click one of the links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/milk.png" alt="404 milk carton" /></p>

</div>
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/potty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>Oh, Crap!</h2>

<p>What you were looking for isn't here. Don't panic, though. We're looking for it.</p>

<p>It'll all work out in the end. Just click one of the links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/potty.png" alt="404 potty" /></p>

</div>
Empty file.
11 changes: 11 additions & 0 deletions _includes/boilerplate/404/sticky.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div style="text-align:center;">

<h2>File Not Found!</h2>

<p>You have discovered a page that doesn't exist. Don't panic, though. Everything is under control.</p>

<p>We made a note to fix the issue. While you wait, click one of the links at the top of the page.</p>

<p><img src="{{ site.baseurl }}/assets/images/404/sticky.png" alt="404 sticky note" /></p>

</div>
29 changes: 29 additions & 0 deletions _includes/boilerplate/404/zork.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<div style="width:400px; background-color:#000; color:#fff; font-family:monospace; border:1px solid black; margin:auto;">

<div style="background-color:#fff; color:#000;"><pre><span style="float:right">0/0</span>West of House</pre></div>

<div style="clear:both;"><pre style="background-color:#000; color:#fff; border:0;">
DORK I: The Great Underground Website
{{ site.jaytch.title | default: site.title }} interactive fiction -
a fallacy story
Copyright (c) 1981, 1982, 1983, 1984,
1985, 1986 {{ site.jaytch.title | default: site.title }}, Inc.
All rights reserved.
DORK is a registered trademark of
{{ site.jaytch.title | default: site.title }}, Inc.
Release 52 / Serial number 871125 /
Interpreter 8 / Version J

West of House
You are standing in an open field west
of a white house, with a boarded front
door.
There is a small mailbox here.
> click link
It is pitch black. Your page has likely
been eaten by a grue. Try a link from
the top of the page.
</pre></div>

</div>
Binary file added assets/images/404/droids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/glass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/milk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/potty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/sticky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/404/wanted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
15,859 changes: 15,859 additions & 0 deletions assets/images/_src/404-droids.ai

Large diffs are not rendered by default.

3,003 changes: 3,003 additions & 0 deletions assets/images/_src/404-glass.ai

Large diffs are not rendered by default.

3,033 changes: 3,033 additions & 0 deletions assets/images/_src/404-link.ai

Large diffs are not rendered by default.

3,324 changes: 3,324 additions & 0 deletions assets/images/_src/404-milk.ai

Large diffs are not rendered by default.

3,088 changes: 3,088 additions & 0 deletions assets/images/_src/404-potty.ai

Large diffs are not rendered by default.

24,410 changes: 24,410 additions & 0 deletions assets/images/_src/404-sticky.ai

Large diffs are not rendered by default.

11,978 changes: 11,978 additions & 0 deletions assets/images/_src/404-wanted.ai

Large diffs are not rendered by default.

Binary file added docs/images/404-badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-droids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-glass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-milk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-potty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-shrug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-sticky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-tweet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/404-zork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/jaytch-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/layouts-frameworks-themes-and-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Jaytch tries to maximize reuse by splitting layouts into three components:
1. The **Theme** -- customized CSS, often specific to a framework.
1. The **Template** -- framework-specific site scaffolding.

![Layout Components]({{ site.baseurl }}/assets/images/jaytch-model.png)
![Layout Components]({{ site.baseurl }}/docs/images/jaytch-model.png)

In general, site *templates* are heavily coupled with a specific site *framework*, which can use a variety of site *themes*.

Expand Down
46 changes: 46 additions & 0 deletions docs/specifying-a-404-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
layout: page
title: "Specifying a 404 Page"
---

I hate the default, unstyled 404 page that Jekyll provides. So, I made some placeholders for you to use. Just set one in the `_config.yml` file and you're good to go.

## Badge

![Badge 404]({{ site.baseurl }}/docs/images/404-badge.png)

## Droids

![Droids 404]({{ site.baseurl }}/docs/images/404-droids.png)

## Glass

![Glass 404]({{ site.baseurl }}/docs/images/404-glass.png)

## Link

![Link 404]({{ site.baseurl }}/docs/images/404-link.png)

## Milk

![Milk 404]({{ site.baseurl }}/docs/images/404-milk.png)

## Potty

![Potty 404]({{ site.baseurl }}/docs/images/404-potty.png)

## Shrug

![Shrug 404]({{ site.baseurl }}/docs/images/404-shrug.png)

## Sticky

![Sticky 404]({{ site.baseurl }}/docs/images/404-sticky.png)

## Tweet

![Tweet 404]({{ site.baseurl }}/docs/images/404-tweet.png)

## Zork

![Zork 404]({{ site.baseurl }}/docs/images/404-zork.png)

0 comments on commit 70451bd

Please sign in to comment.