Skip to content

Commit

Permalink
Adding display title to news items
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Dec 16, 2024
1 parent 9906f63 commit 9f9e646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/website/news/News.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<a v-if="news && news.redirect_url" :href="news.redirect_url" target="_blank" class="no-link-style">
<NewsThumbnail :item="news" />
<div class="news-headline">{{ news.headline }}</div>
<div class="news-headline">{{ news.display_title || news.headline }}</div>
</a>
<router-link v-else :to="`/news/${news.slug}`" class="news no-link-style">
<NewsThumbnail :item="news" />
<div class="news-headline">{{ news.headline }}</div>
<div class="news-headline">{{ news.display_title || news.headline }}</div>
</router-link>
</template>

Expand Down

0 comments on commit 9f9e646

Please sign in to comment.