Skip to content

Commit

Permalink
Added 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 24, 2011
1 parent 948dda0 commit 6ccfcc9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
14 changes: 14 additions & 0 deletions 404.rst
@@ -0,0 +1,14 @@
public: yes

404, Page Not Found
===================

| The requested page,
| cannot be found —
| We're sorry.
Maybe we can help you out though:

- `overview </>`_ — for a quick introduction into Jinja2
- the `documentation </docs/>`_, in case you need help
- our helpful `community </community/>`_
4 changes: 2 additions & 2 deletions _templates/layout.html
Expand Up @@ -10,8 +10,8 @@ <h1><span>Jinja2</span></h1>
<p>The Python Template Engine
</div>
<p class=nav>
<a href="/">overview</a> |
<a href="/docs/">documentation</a> |
<a href="/">overview</a> ~
<a href="/docs/">documentation</a> ~
<a href="/community/">community</a>
{% block body %}{% endblock %}
<p class=footer>
Expand Down
13 changes: 8 additions & 5 deletions static/style.css
@@ -1,8 +1,10 @@
@import url(http://fonts.googleapis.com/css?family=Crimson+Text);

body { font-family: 'Georgia', serif; font-size: 17px; color: #000; }
a { color: #aa0000; }
a:hover { color: #dd0000; }
a { color: #aa0000; border-bottom: 1px dotted #bb0000; text-decoration: none; }
a:hover { color: #dd0000; border-bottom: 1px solid #dd0000; }
.box { width: 540px; margin: 40px auto; }
h1, h2, h3 { font-family: 'Georgia', serif; font-weight: normal; }
h1, h2, h3 { font-family: 'Crimson Text', 'Georgia', serif; font-weight: normal; }
.header { height: 165px; }
.header h1 { margin: 0 0 30px 0; background: url(/static/jinja.png) no-repeat center;
font-size: 50px; padding-top: 50px; height: 120px; }
Expand All @@ -11,8 +13,9 @@ h1 { font-size: 34px; margin: 25px 0 5px 0; }
h2 { font-size: 24px; margin: 25px 0 5px 0; }
h3 { font-size: 19px; margin: 25px 0 5px 0; }
textarea, code,
pre { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono',
monospace!important; font-size: 15px; background: #eee; }
pre { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono',
'Bitstream Vera Sans Mono', monospace!important; font-size: 15px;
background: #eee; }
pre { padding: 7px 30px; margin: 15px -30px; line-height: 1.3; }
.ig { color: #888; }
p { line-height: 1.4; }
Expand Down

0 comments on commit 6ccfcc9

Please sign in to comment.