comlib/templates/bib.html

25 lines
1.1 KiB
HTML

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
<main class="fp">
{% if this.body %}
<h2>{{ this.title }}</h2>
{{ this.body }}
{% else %}
<h2>{{ this.title }}</h2>
{% endif %}
<ul class="list-none">
{% for post in this.children %}
<li class="bib">
<span class="bib-title"><a href="{{ post|url(absolute=true) }}"{% if post.selected %} class="selected"{% endif %}>{{ post.title }}</a></span>
{% if post.epub %}<span class="bib-epub">[<a href="/lib/epub/{{ post.epub }}">EPUB</a>] </span>{% endif %}
{% if post.html %}<span class="bib-html">[<a href="/lib/html/{{ post.html }}/">Read online</a>]</span>{% endif %}<br>
{% if post.subtitle %}<span class="bib-small-txt">{{ post.subtitle }}</span><br>{% endif %}
{% if post.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %}
{% if post.publisher %}<span class="bib-small-txt italics">{{ post.publisher}}, </span>{% endif %}<span class="bib-small-txt italics">{{ post.pub_date }}</span>
</li>
{% endfor %}
</ul>
</main>
{% endblock %}