From b25207f03ee0bf63e61f0fe4724f17e5226efed3 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Mon, 16 Oct 2023 13:42:56 +0000 Subject: [PATCH] Allow http urls in orig (Thanks marx2mao....) --- templates/bib.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/bib.html b/templates/bib.html index 290ed9f..fca7747 100644 --- a/templates/bib.html +++ b/templates/bib.html @@ -12,7 +12,7 @@
  • {{ 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.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.orig %}{% for item in post.orig %}({% set urls = item.split(", ") %}{% for url in urls %}{% if "https://" in url %}{{ url.split('https://')[1].split('/')[0] }}{% elif "http://" in url %}{{ url.split('http://'[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 %} {% if post.publisher %}{{ post.publisher}}, {% endif %}{{ post.pub_date }}