comlib/templates/bib.html

24 lines
1.6 KiB
HTML
Raw Normal View History

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% if this.body %}
2024-01-03 08:44:32 +00:00
<h2 class="page-title">{{ this.title }}</h2>
{{ 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">
<span class="bib-title">{{ post.title }}</span>
{% if post.epub %}<span class="bib-orig">{% for item in post.epub %}[{% 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/epub/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
2024-01-16 23:47:23 +00:00
{% if post.html %}<span class="bib-orig">[<a href="/lib/html/{{ item }}">HTML</a>]</span>{% endif %}
2024-01-03 08:44:32 +00:00
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% 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>
{% 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>
{% endblock %}