moviewyrm/bookwyrm/templates/snippets/authors.html

19 lines
554 B
HTML
Raw Normal View History

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