Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added 404 page

  • Loading branch information...
commit 6ccfcc97ecd330efd8c9048e180709aee9b11e5c 1 parent 948dda0
@mitsuhiko mitsuhiko authored
Showing with 24 additions and 7 deletions.
  1. +14 −0 404.rst
  2. +2 −2 _templates/layout.html
  3. +8 −5 static/style.css
View
14 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/>`_
View
4 _templates/layout.html
@@ -10,8 +10,8 @@
<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>
View
13 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; }
@@ -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; }
Please sign in to comment.
Something went wrong with that request. Please try again.