html doesn't use strings, so post.html in template
This commit is contained in:
parent
58712acb99
commit
2a91dd39a3
|
@ -12,7 +12,7 @@
|
|||
<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 "http" in url %}<a href="{{ url }}">{{ url.split('://')[1].split('/')[0] }}</a>{% else %}<a href="/lib/epub/{{ url }}">EPUB</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}</span>{% endif %}
|
||||
{% if post.html %}<span class="bib-orig">[<a href="/lib/html/{{ item }}">HTML</a>]</span>{% endif %}
|
||||
{% if post.html %}<span class="bib-orig">[<a href="/lib/html/{{ post.html }}">HTML</a>]</span>{% endif %}
|
||||
{% if post.orig %}<span class="bib-orig">{% for item in post.orig %}({% 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.author %}<span class="bib-small-txt">by {{ post.author }}</span><br>{% endif %}
|
||||
|
|
Loading…
Reference in a new issue