fixup! Allow http urls in orig
This commit is contained in:
parent
b25207f03e
commit
6087642b7c
|
@ -12,7 +12,7 @@
|
||||||
<li class="bib">
|
<li class="bib">
|
||||||
<span class="bib-title">{{ post.title }}</span>
|
<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/epub/{{ 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>{% elif "http://" in url %}<a href="{{ url }}">{{ url.split('http://'[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.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>{% elif "http://" in url %}<a href="{{ url }}">{{ url.split('http://')[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.subtitle %}<span class="bib-subtitle">"{{ post.subtitle }}"</span><br>{% endif %}
|
||||||
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}
|
{% if post.author %}<span class="bib-author">by {{ post.author }}</span><br>{% endif %}
|
||||||
{% if post.publisher %}<span class="bib-publisher">{{ post.publisher}}, </span>{% endif %}<span class="bib-pubdate">{{ post.pub_date }}</span>
|
{% if post.publisher %}<span class="bib-publisher">{{ post.publisher}}, </span>{% endif %}<span class="bib-pubdate">{{ post.pub_date }}</span>
|
||||||
|
|
Loading…
Reference in a new issue