From 41e1f5ecdcffa552927634059c4d6d80b4152104 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Sat, 26 Aug 2023 19:59:01 +0000 Subject: [PATCH] Use /lib/epub/ for epubs --- templates/bib.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/bib.html b/templates/bib.html index 77fe520..290ed9f 100644 --- a/templates/bib.html +++ b/templates/bib.html @@ -11,7 +11,7 @@ {% for post in this.children %}
  • {{ post.title }} - {% if post.epub %}{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}{{ url.split('https://')[1].split('/')[0] }}{% else %}EPUB{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}{% endif %} + {% if post.epub %}{% for item in post.epub %}[{% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}{{ url.split('https://')[1].split('/')[0] }}{% else %}EPUB{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}] {% endfor %}{% endif %} {% if post.orig %}{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}{{ url.split('https://')[1].split('/')[0] }}{% else %}cached{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}) {% endfor %}{% endif %}
    {% if post.subtitle %}"{{ post.subtitle }}"
    {% endif %} {% if post.author %}by {{ post.author }}
    {% endif %}