2021-04-09 21:57:49 +00:00
|
|
|
|
{% spaceless %}
|
|
|
|
|
{% comment %}
|
2021-04-09 22:07:01 +00:00
|
|
|
|
@todo The author property needs to be an Organization or a Person. We’ll be using Thing which is the more generic ancestor.
|
2021-04-09 21:57:49 +00:00
|
|
|
|
@see https://schema.org/Author
|
|
|
|
|
{% endcomment %}
|
|
|
|
|
{% for author in book.authors.all %}
|
|
|
|
|
<a
|
2021-05-04 16:34:16 +00:00
|
|
|
|
href="{{ author.local_path }}"
|
2021-04-09 21:57:49 +00:00
|
|
|
|
class="author"
|
|
|
|
|
itemprop="author"
|
|
|
|
|
itemscope
|
|
|
|
|
itemtype="https://schema.org/Thing"
|
|
|
|
|
><span
|
|
|
|
|
itemprop="name"
|
|
|
|
|
>{{ author.name }}<span></a>{% if not forloop.last %}, {% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endspaceless %}
|