breb 0.5.0

the blog/reblog library and command-line tool
Documentation
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  {{ attribution }}
  <title>{% if title is defined %}{{ title }} | {% endif %}{{ site }}</title>
  {% if stylesheets is defined %}{% for href in stylesheets %}
    <link rel="stylesheet" href="/{{ href }}">
  {% endfor %}{% endif %}

  <meta property="og:site_name" content="{{ name }}">
  {% if locale is defined %}<meta property="og:locale" content="{{ locale }}">{% endif %}
  {% if title is defined %}<meta property="og:title" content="{{ title }}">{% endif %}
  {% if subtitle is defined %}<meta property="og:description" content="{{ subtitle }}">{% endif %}
  {% block head %}{% endblock %}
</head>

<body>
<header>
  <h1><a href="/" title="{{ site }}">{{ site }}</a></h1>
  <nav>
    {% for ele in nav %}
      <a href="{{ ele.href }}">{{ ele.text }}</a>
    {% endfor %}
  </nav>
</header>

<main>
  {% block main %}
    <p>
      er, it looks like this template didn't get rendered properly.
      you, dear reader, probably can't fix it &ndash;
      but the author probably can!
    </p>
    <p>
      if you <em>are</em> the author, make sure your templates are correct,
      especially that they're providing a <code>block main</code>.
      or that you've replaced <code>base</code> with your own template!
    </p>
  {% endblock %}
</main>
</body>
</html>