Skip to content

Commit 444bb0d

Browse files
WEB: Fix blog links (#51649)
1 parent 1130360 commit 444bb0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/pandas/community/blog/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{% for post in blog.posts %}
55
<div class="card">
66
<div class="card-body">
7-
<h5 class="card-title"><a href="{{ base_url }}{{post.link }}" target="_blank">{{ post.title }}</a></h5>
7+
<h5 class="card-title"><a href="{% if not post.link.startswith("http") %}{{ base_url }}{% endif %}{{ post.link }}" target="_blank">{{ post.title }}</a></h5>
88
<h6 class="card-subtitle text-muted small mb-4">Source: {{ post.feed }} | Author: {{ post.author }} | Published: {{ post.published.strftime("%b %d, %Y") }}</h6>
99
<div class="card-text mb-2">{{ post.summary }}</div>
10-
<a class="card-link small" href="{{ base_url }}{{post.link }}" target="_blank">Read more</a>
10+
<a class="card-link small" href="{% if not post.link.startswith("http") %}{{ base_url }}{% endif %}{{ post.link }}" target="_blank">Read more</a>
1111
</div>
1212
</div>
1313
{% endfor %}

0 commit comments

Comments
 (0)