mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-08 07:12:21 +00:00
Add author born/death years to search results
For it to be simpler to discern between authors that share names, add their birth and death years to the list. With both years set, displayed `(1970-2024)` Dead authors with no set birth year are displayed `(-1970)`. Currently alive ones are displayed `(1970-)`
This commit is contained in:
parent
61845678c4
commit
b0d090e8fc
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