app/templates/notes.htm
{% extends "includes/base.htm" %}
{% block title %}Albert Wang - Notes{% endblock %}
{% block description %}Notes{% endblock %}
{% block content %}
<div class="content">
<h1>Notes</h1>
<a href="/atom.xml">Atom Feed</a>
{% for post in posts[:5] %}
<section class="note">
<h2>
{{ post.title | safe }}
</h2>
<subtitle>
{{ post.time.strftime("%B %-d, %Y") }}
</subtitle>
<p>
{{ post.note | safe }}
</p>
<a href="{{ post.url() }}">Permalink</a>
</section>
{% endfor %}
{% for post in posts[5:] %}
<section class="note">
<h2>
<a href="{{ post.url() }}">{{ post.title | safe }}</a>
</h2>
<subtitle>
{{ post.time.strftime("%B %-d, %Y") }}
</subtitle>
</section>
{% endfor %}
</div>
{% endblock %}