Add prolewiki
This commit is contained in:
parent
191d968c3e
commit
0a0f97010b
|
@ -13,3 +13,5 @@ epub:
|
|||
russian-justice.epub
|
||||
---
|
||||
html: russian-justice
|
||||
---
|
||||
prolewiki: Russian_Justice
|
||||
|
|
|
@ -30,6 +30,10 @@ type = strings
|
|||
label = html folder name
|
||||
type = string
|
||||
|
||||
[fields.prolewiki]
|
||||
label = prolewiki Library: name
|
||||
type = string
|
||||
|
||||
[fields.orig]
|
||||
label = Origin URL
|
||||
type = strings
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
<p class="italics">{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}</p>
|
||||
<div class="mt-2">
|
||||
{% if this.html %}<p><a href="/lib/html/{{ this.html }}/">Read online</a></p>{% endif %}
|
||||
{% if this.prolewiki %}<p><a href="https://en.prolewiki.org/wiki/Library:{{ this.prolewiki }}">Read on ProleWiki</a></p>{% endif %}
|
||||
{% if this.epub %}<p {% if this.html %}class="mt-1"{% endif %}>Download EPUB:</p>{% for item in this.epub %}<p>{% 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 }}">comlib.encryptionin.space</a>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}</p>{% endfor %}{% endif %}
|
||||
{% if this.orig %}<p {% if this.epub %}class="mt-1"{% endif %}>Download source PDF:</p>{% for item in this.orig %}<p>{% 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 %}</p>{% endfor %}{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue