Remove source from bib

This commit is contained in:
HackerNCoder 2024-09-18 18:25:33 +02:00
parent 5904832be1
commit 01108a6c2d

View file

@ -13,8 +13,7 @@
<li class="bib"> <li class="bib">
<span class="bib-title"><a href="{{ post|url(absolute=true) }}"{% if post.selected %} class="selected"{% endif %}>{{ post.title }}</a></span> <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/{{ post.epub }}">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.html %}<span class="bib-html">[<a href="/lib/html/{{ post.html }}/">Read online</a>]</span>{% endif %}<br>
{% 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 %} {% if post.subtitle %}<span class="bib-small-txt">{{ post.subtitle }}</span><br>{% endif %}
{% if post.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %} {% if post.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %}
{% if post.publisher %}<span class="bib-small-txt italics">{{ post.publisher}}, </span>{% endif %}<span class="bib-small-txt italics">{{ post.pub_date }}</span> {% if post.publisher %}<span class="bib-small-txt italics">{{ post.publisher}}, </span>{% endif %}<span class="bib-small-txt italics">{{ post.pub_date }}</span>