{% if post.epub %}<spanclass="bib-orig">{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}<ahref="{{ url }}">{{ url.split('https://')[1].split('/')[0] }}</a>{% else %}<ahref="/lib/cache/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
{% if post.orig %}<spanclass="bib-orig">{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}<ahref="{{ url }}">{{ url.split('https://')[1].split('/')[0] }}</a>{% else %}<ahref="/lib/cache/{{ url }}">cached</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}</span>{% endif %}<br>