comlib/templates/bib.html

16 lines
723 B
HTML

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
<h2>{{ this.title }}</h2>
<ul class="list-none">
{% for post in this.children %}
<li class="bib">
<span class="bib-title">{{ post.title }}</span>
<span class="bib-orig">(<a href="{{ post.orig }}">{{ post.orig.host }}</a>{% if post.cache %}, <a href="/lib/cache{{ post.parent.path }}/{{ post.cache }}">cached</a>{% endif %})</span><br>
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}
{% if post.publisher %}<span class="bib-publisher">{{ post.publisher}}, </span>{% endif %}<span class="bib-pubdate">{{ post.pub_date }}</span>
</li>
{% endfor %}
</ul>
{% endblock %}