Fix EPUB link in bib

This commit is contained in:
HackerNCoder 2024-09-18 18:16:25 +02:00
parent 4113076120
commit 5904832be1

View file

@ -12,7 +12,7 @@
{% 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/{{ url }}">EPUB</a>] </span>{% endif %}
{% 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 %}
{% 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>
{% if post.subtitle %}<span class="bib-small-txt">{{ post.subtitle }}</span><br>{% endif %}