comlib/templates/bib.html

26 lines
1.5 KiB
HTML
Raw 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-01 17:30:27 +00:00
{% if post.epub %}<span class="bib-epub">[<a href="/lib/epub/{{ url }}">EPUB</a>] </span>{% endif %}
{% if post.html %}<span class="bib-html">[<a href="/lib/html/{{ post.html }}/">Read online</a>]</span>{% endif %}
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}(Source: {% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}</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 %}