Skip to content

Commit a2e7d51

Browse files
committed
Use the correct link for blog posts on the main new-list.
Signed-off-by: James R. Perkins <jperkins@ibm.com>
1 parent 04bf8e5 commit a2e7d51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/partials/news-list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>Latest News</h3>
66
<div class="grid__item width-3-12">
77
<div class="grid__item">
88
<h4>
9-
<a href="{post.data.link ?: post.url}" {#if post.data.link}target="_blank" {/if}>
9+
<a href="{post.url.absolute}">
1010
{post.title}
1111
</a>
1212
</h4>
@@ -21,7 +21,7 @@ <h4>
2121
{site.pageContent(post).stripHtml.wordLimit(75).raw}
2222
</p>
2323
{/if}
24-
<a href="{post.data.link.or(post.url)}" {#if post.data.link}target="_blank" {/if}>
24+
<a href="{post.url.absolute}">
2525
{#if post.data.link.contains("youtube")}Watch Video >{#else}Read More >{/if}
2626
</a>
2727
</div>

0 commit comments

Comments
 (0)