diff --git a/assets/static/style.css b/assets/static/style.css index 4eb044d..b8ad94d 100644 --- a/assets/static/style.css +++ b/assets/static/style.css @@ -88,6 +88,10 @@ h2.page-title { font-weight: bold; } +.bib-subtitle { + font-size: 0.9em; +} + .bib-author { font-size: 0.9em; } diff --git a/models/book.ini b/models/book.ini index 27a8e4c..d9414fa 100644 --- a/models/book.ini +++ b/models/book.ini @@ -6,6 +6,10 @@ label = {{ this.title }} label = Title type = string +[fields.subtitle] +label = Subtitle +type = string + [fields.author] label = Author type = string @@ -29,7 +33,3 @@ type = string [fields.orig] label = Origin URL type = strings - -[fields.cache] -label = Cached file name -type = string \ No newline at end of file diff --git a/templates/bib.html b/templates/bib.html index 93bd826..2056f5e 100644 --- a/templates/bib.html +++ b/templates/bib.html @@ -11,7 +11,8 @@ {% for post in this.children %}
  • {{ post.title }} - {% if post.orig %}{% for item in post.orig %}({% set urls = item.split(", ") %}{{ urls[0].split('https://')[1].split('/')[0] }}{% if urls[1] %}, cached{% endif %}) {% 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 %} {% if post.publisher %}{{ post.publisher}}, {% endif %}{{ post.pub_date }}