Skip to content

Commit

Permalink
πŸ› Blog: Only show author profile link if author has a profile
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Jul 22, 2024
1 parent dfc0019 commit 2e7bfa4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
{% spaceless %}
{% for author in authors %}
<span itemscope="" itemtype="http://schema.org/Person">
{# djlint:off #}
<a href="{{ author.get_absolute_url }}" rel="author" itemprop="url">{{ author.get_full_name }}</a>{% if article.credits or not forloop.last %},{% endif %}
{# djlint:on #}
{% if author.get_absolute_url %}
<a href="{{ author.get_absolute_url }}" rel="author" itemprop="url">{{ author.get_full_name }}</a>
{% else %}
{{ author.get_full_name }}
{% endif %}
{% if article.credits or not forloop.last %},{% endif %}
</span>
{% endfor %}
{{ article.credits }}
Expand Down

0 comments on commit 2e7bfa4

Please sign in to comment.