Skip to content

Commit

Permalink
fix: links not shown on broken metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vas3k committed Sep 13, 2024
1 parent ac6e1ab commit 899583f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/html/posts/show/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ <h1 class="post-inline-title">{{ post.title | rutypography }}</h1>

{% block post_text %}
<section class="text-body text-body-type-post e-content">
{% if post.metadata %}
{% if post.metadata and post.metadata.url %}
{% link_summary post %}
{% else %}
&rarr;&nbsp;<a href="{{ post.url }}" target="_blank" rel="noopener">{{ post.url }}</a>
<div class="block post-link post-metadata-type-link">
<a href="{{ post.url }}" target="_blank" rel="noopener" class="post-link-a">
<span class="post-link-title">{{ post.url|truncatechars:"80" }}</span>
</a>
</div>
{% endif %}

{% render_post post %}
Expand Down

0 comments on commit 899583f

Please sign in to comment.