This commit is contained in:
HackerNCoder 2024-01-17 00:47:23 +01:00
parent 660f26443b
commit 58712acb99
3 changed files with 9 additions and 2 deletions

View file

@ -11,3 +11,5 @@ https://annas-archive.org/md5/3c2da922ea78b91c28c2b81b5c2da556, this-soviet-worl
---
epub:
this-soviet-world.epub, https://archive.org/details/this-soviet-world-anna-louise-strong
---
html: this-soviet-world

View file

@ -26,10 +26,14 @@ type = string
label = epub file name
type = strings
[fields.image]
label = Image name
[fields.html]
label = html folder name
type = string
[fields.orig]
label = Origin URL
type = strings
[fields.image]
label = Image name
type = string

View file

@ -12,6 +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.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 %}