mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-03 13:58:43 +00:00
Render series number with comma and outside of link on book page
This commit is contained in:
parent
2915133223
commit
592914dc91
1 changed files with 6 additions and 2 deletions
|
@ -45,18 +45,22 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if book.series %}
|
{% if book.series %}
|
||||||
<meta itemprop="position" content="{{ book.series_number }}">
|
{% spaceless %}
|
||||||
<span itemprop="isPartOf" itemscope itemtype="https://schema.org/BookSeries">
|
<span itemprop="isPartOf" itemscope itemtype="https://schema.org/BookSeries">
|
||||||
{% if book.authors.exists %}
|
{% if book.authors.exists %}
|
||||||
<a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series | urlencode }}"
|
<a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series | urlencode }}"
|
||||||
itemprop="url">
|
itemprop="url">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span itemprop="name">{{ book.series }}</span>
|
<span itemprop="name">{{ book.series }}</span>
|
||||||
{% if book.series_number %} #{{ book.series_number }}{% endif %}
|
|
||||||
{% if book.authors.exists %}
|
{% if book.authors.exists %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
{% if book.series_number %}
|
||||||
|
<span>, #</span>
|
||||||
|
<span itemprop="position">{{ book.series_number }}</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endspaceless %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue