Use /lib/epub/ for epubs

This commit is contained in:
HackerNCoder 2023-08-26 19:59:01 +00:00
parent ba7a2218e7
commit 41e1f5ecdc

View file

@ -11,7 +11,7 @@
{% 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 "https://" in url %}<a href="{{ url }}">{{ url.split('https://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/cache/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
{% if post.epub %}<span class="bib-orig">{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}<a href="{{ url }}">{{ url.split('https://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}<a href="{{ url }}">{{ url.split('https://')[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-subtitle">"{{ post.subtitle }}"</span><br>{% endif %}
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}