diff --git a/templates/book.html b/templates/book.html index 455f982..4a5bde9 100644 --- a/templates/book.html +++ b/templates/book.html @@ -28,8 +28,8 @@

{{ this.title }}

{% if this.subtitle %}

{{ this.subtitle }}

{% endif %} - {% if this.author %}

{{ this.author }}

{% endif %} -

{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}

+ {% if this.author %}

{{ this.author }}

{% endif %} +

{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}

{% if this.html %}

Read online

{% endif %}
{% if this.epub %}

Download EPUB:

{% for item in this.epub %}

{% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}{{ url.split('://')[1].split('/')[0] }}{% else %}comlib.encryptionin.space{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}

{% endfor %}{% endif %}