Added 404 page

This commit is contained in:
Panos Sakkos 2015-07-05 19:30:46 +02:00
parent dedd62b355
commit 7af53a6f46
5 changed files with 44 additions and 2 deletions

7
404.html Normal file
View file

@ -0,0 +1,7 @@
---
layout: error
title: 404
---
##Why are you still procrastinating?
#####Check <a href="http://waitbutwhy.com/2013/11/how-to-beat-procrastination.html" target="_blank">this</a> out if you want to stop looking for pages that don't exist

View file

@ -6,7 +6,9 @@
<meta name="author" content="{{ site.author }}" />
<meta name="keywords" content="{{ site.keywords }}" />
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
{% if page.url == "/404.html" %}
<meta http-equiv="refresh" content="20; url=/">
{% endif %}
<title>{{ site.title }} {% if page.title %} | {{ page.title }}{% endif %}</title>
<!-- Bootstrap Core CSS -->

31
_layouts/error.html Normal file
View file

@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{% include head.html %}
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
{% include navigation.html %}
<section id="{{ page.title }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h1><strong>{{ page.title }}</strong></h1>
{{ page.content | markdownify }}
<img class="img-responsive center-block" src="/img/labtocat.png" alt="">
{% include social-buttons.html %}
</div>
</div>
</section>
{% include footer.html %}
{% include js.html %}
</body>
</html>

BIN
img/labtocat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View file

@ -27,6 +27,7 @@
* Preview size of the latest post
* Timeline events
* Disqus comments
* Cool (anti-procrastinating) 404 page
# Screenshots
## Index page
@ -39,6 +40,8 @@
![Archive](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/archive.jpg)
## Post page
![Post](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/post.jpg)
## 404
![404](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/404.jpg)
## Customizing your website from the config
@ -155,4 +158,3 @@ After this header you can start writing your post using Markdown.
## Steps forward
* Support discovery with support of tags
* Add 404 page