Fix case where there is no subtitle.

Consequentially change back author to being a subtitle.
This commit is contained in:
Fabien Basmaison 2021-06-11 09:41:55 +02:00
parent cf751a8efa
commit 17635b47db

View file

@ -13,7 +13,7 @@
</h1> </h1>
{% if book.subtitle or book.series %} {% if book.subtitle or book.series %}
<p class="subtitle is-5 mb-1"> <p class="subtitle title is-5">
{% if book.subtitle %} {% if book.subtitle %}
<meta <meta
itemprop="alternativeHeadline" itemprop="alternativeHeadline"
@ -36,7 +36,7 @@
{% endif %} {% endif %}
{% if book.authors %} {% if book.authors %}
<div> <div class="subtitle">
{% trans "by" %} {% include 'snippets/authors.html' with book=book %} {% trans "by" %} {% include 'snippets/authors.html' with book=book %}
</div> </div>
{% endif %} {% endif %}