mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-04-15 14:54:06 +00:00
Merge pull request #3474 from tkbremnes/tkbremnes/add-author-dates-to-search-results
Add author born/death years to author search results
This commit is contained in:
commit
91f9c286b5
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
<li class="">
|
||||
<a href="{{ author.local_path }}" class="author" itemprop="author" itemscope itemtype="https://schema.org/Thing">
|
||||
<span itemprop="name">{{ author.name }}</span>
|
||||
{% if author.born or author.died %}
|
||||
<span>({{ author.born|date:"Y" }}-{{ author.died|date:"Y" }})</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue