{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% if this.body %}
{{ this.title }}
{{ this.body }}
{% else %}
{{ this.title }}
{% endif %}
{% for post in this.children %}
-
{{ post.title }}
{% if post.epub %}[EPUB] {% endif %}
{% if post.html %}[Read online]{% endif %}
{% if post.orig %}{% for item in post.orig %}(Source: {% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}{{ url.split('://')[1].split('/')[0] }}{% else %}cached{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}{% endif %}
{% if post.subtitle %}{{ post.subtitle }}
{% endif %}
{% if post.author %}by {{ post.author }}
{% endif %}
{% if post.publisher %}{{ post.publisher}}, {% endif %}{{ post.pub_date }}
{% endfor %}
{% endblock %}