Fix EPUB link in bib
This commit is contained in:
parent
4113076120
commit
5904832be1
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue