Add a basic about page.

This commit is contained in:
Aldo Cortesi 2012-07-25 11:55:44 +12:00
parent 410144c579
commit 0b916ebbb1
3 changed files with 31 additions and 0 deletions

View File

@ -37,6 +37,12 @@ def render(s, **kwargs):
@app.route('/index.html')
def index():
return render("index.html", section="main")
j
@app.route('/about')
@app.route('/about.html')
def about():
return render("about.html", section="about")
@app.route('/docs/pathod')

View File

@ -0,0 +1,24 @@
{% extends "frame.html" %}
{% block body %}
<div class="page-header">
<h1><a href="http://github.com/cortesi/pathod/">the code</a></h1>
</div>
<h2>git clone git://github.com/cortesi/pathod.git</h2>
<p>Please use the <a href="http://github.com/cortesi/pathod/issues">github
issue tracker</a> to report bugs. </p>
<div class="page-header">
<h1><a href="http://corte.si">the author</a></h1>
</div>
<p>pathod is developed by <a href="http://corte.si">Aldo Cortesi</a>. Email me
at aldo@corte.si with feedback or suggestions. If you like pathod, you should
follow me on <a href="http://twitter.com/cortesi">twitter</a> and <a
href="http://corte.si">subscribe to my blog</a>.</p>
{% endblock %}

View File

@ -53,6 +53,7 @@
<li><a href="/docs/test">libpathod.test</a></li>
</ul>
</li>
<li {% if section== "about" %} class="active" {% endif %}><a href="/about">about</a></li>
</ul>
</div>
</div>