Skip to content

Commit

Permalink
show Wikidata link on author page
Browse files Browse the repository at this point in the history
Supporting Wikidata is very wonderful. And how about make Wikidata link visible on author page? 
Modified bookwyrm\templates\author\author.html
  • Loading branch information
Guanchishan authored Oct 13, 2024
1 parent 13381b9 commit f8650bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bookwyrm/templates/author/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ <h2 class="title is-4">{% trans "External links" %}</h2>
</div>
{% endif %}

{% if author.wikidata %}
<div>
<a itemprop="sameAs" href="https://www.wikidata.org/wiki/{{ author.wikidata }}" rel="nofollow noopener noreferrer" target="_blank">
{% trans "View on Wikidata" %}
</a>
</div>
{% endif %}

{% if author.website %}
<div>
<a itemprop="sameAs" href="{{ author.website }}" rel="nofollow noopener noreferrer" target="_blank">
Expand Down

0 comments on commit f8650bb

Please sign in to comment.