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:
Hugh Rundle 2025-03-16 11:15:47 +11:00 committed by GitHub
commit 91f9c286b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 %}