From e60b0f341af8e32f8f15fe947aee17eb43ff5012 Mon Sep 17 00:00:00 2001 From: walsh9 Date: Tue, 21 Mar 2023 18:34:10 -0400 Subject: [PATCH] Show sponsored tag when article is sponsoredContent (#261) * show sponsored tag when article is sponsoredContent --- pages/[sectionSlug]/[articleSlug].vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/[sectionSlug]/[articleSlug].vue b/pages/[sectionSlug]/[articleSlug].vue index a4f3e40e..6d8a8fd5 100644 --- a/pages/[sectionSlug]/[articleSlug].vue +++ b/pages/[sectionSlug]/[articleSlug].vue @@ -104,6 +104,9 @@ const getGalleryLink = computed(() => { const showMarketingBanner = computed(() => { return marketingBannerData.value[0]?.location === 'BOTTOM' }) + +const tagName = computed(() => article?.sponsoredContent ? "Sponsored" : article?.section?.name ) +const tagSlug = computed(() => article?.sponsoredContent ? "" : `/${article?.section?.slug}` )