Use the external URL if there is one

This commit is contained in:
Oliver Davies 2019-06-06 19:40:45 +01:00
parent 1e633b3514
commit 32b2fe69c5

View file

@ -1,7 +1,7 @@
<div class="spaced-y-2">
<div class="spaced-y-2px">
<h2 class="text-inherit text-lg m-0">
<a href="{{ post.url }}" class="text-inherit" tabindex="-1">
<a href="{{ post.external_url ?: post.url }}" class="text-inherit" tabindex="-1">
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
</a>
</h2>