breb 0.5.0

the blog/reblog library and command-line tool
Documentation
{% extends "base" %}
{% block main %}
  <hgroup class="title">
    <h1>{{ title }}</h1>
    {% if subtitle is defined %}<p>{{ subtitle }}</p>{% endif %}
    {% if published is defined -%}
      <time class="published" datetime="{{ published }}">{{ published | strftime("%-d %b. %Y") }}</time>
    {%- else -%}
      <span class="published">DRAFT</span>
    {%- endif -%}
    {%- for tag in tags %}<span class="tag">{{ tag }}</span>{% endfor %}
  </hgroup>

  {% block body %}{% endblock %}

  {% if series is defined %}
    <nav class="series">
      <p>{{ series.name }}</p>
      {% if series.first is defined %}
        <a class="first" href="/{{ series.first }}">first</a>
      {% endif %}
      {% if series.prev is defined %}
        <a class="prev" href="/{{ series.prev }}">previous</a>
      {% endif %}
      {% if series.next is defined %}
        <a class="next" href="/{{ series.next }}">next</a>
      {% endif %}
      {% if series.latest is defined %}
        <a class="latest" href="/{{ series.latest }}">latest</a>
      {% endif %}
    </nav>
  {% endif %}
{% endblock %}