diff --git a/content/epubs/prostitution-and-ways-of-fighting-it/contents.lr b/content/epubs/prostitution-and-ways-of-fighting-it/contents.lr index 9f6b5de..1d236b8 100644 --- a/content/epubs/prostitution-and-ways-of-fighting-it/contents.lr +++ b/content/epubs/prostitution-and-ways-of-fighting-it/contents.lr @@ -7,3 +7,5 @@ https://www.marxists.org/archive/kollonta/1921/prostitution.htm --- epub: prostitution-and-ways-of-fighting-it.epub +--- +length: short diff --git a/models/book.ini b/models/book.ini index 1a95af9..b38e887 100644 --- a/models/book.ini +++ b/models/book.ini @@ -22,6 +22,10 @@ type = string label = Publication date type = string +[fields.length] +label = How long the text is +type = string + [fields.epub] label = epub file name type = string diff --git a/templates/book.html b/templates/book.html index ece40a3..83e2032 100644 --- a/templates/book.html +++ b/templates/book.html @@ -14,6 +14,7 @@ {% if this.subtitle %}

{{ this.subtitle }}

{% endif %} {% if this.author %}

{{ this.author }}

{% endif %}

{% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}

+ {% if this.length %}

Length: {{ this.length }}

{% endif %}
{% if this.epub %}

Download EPUB:

From Comrades Library

{% endif %} {% if this.external %}{% for item in this.external %}

From {{ item.split('://')[1].split('/')[0] }}

{% endfor %}{% endif %}