comlib/templates/bib.html

25 lines
1.1 KiB
HTML
Raw Permalink Normal View History

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
2024-09-01 17:30:27 +00:00
<main class="fp">
{% if this.body %}
2024-09-18 15:57:30 +00:00
<h2>{{ this.title }}</h2>
2024-01-03 08:44:32 +00:00
{{ this.body }}
{% else %}
2024-01-03 08:44:32 +00:00
<h2>{{ this.title }}</h2>
{% endif %}
2024-01-03 08:44:32 +00:00
<ul class="list-none">
{% for post in this.children %}
<li class="bib">
2024-03-01 20:38:49 +00:00
<span class="bib-title"><a href="{{ post|url(absolute=true) }}"{% if post.selected %} class="selected"{% endif %}>{{ post.title }}</a></span>
2024-09-18 16:16:25 +00:00
{% if post.epub %}<span class="bib-epub">[<a href="/lib/epub/{{ post.epub }}">EPUB</a>] </span>{% endif %}
2024-09-18 16:25:33 +00:00
{% if post.html %}<span class="bib-html">[<a href="/lib/html/{{ post.html }}/">Read online</a>]</span>{% endif %}<br>
2024-01-03 08:44:32 +00:00
{% 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>
2024-09-01 17:30:27 +00:00
</main>
{% endblock %}