feat: adj links kategory
This commit is contained in:
parent
2e09e8a962
commit
eafe70a021
@ -8,31 +8,31 @@ import { XIcon } from '~/components/icons/x'
|
|||||||
export const MENU = [
|
export const MENU = [
|
||||||
{
|
{
|
||||||
title: 'Spotlight',
|
title: 'Spotlight',
|
||||||
url: '/news/topic?category=spotlight',
|
url: '/news/category/spotlight',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Berita',
|
title: 'Berita',
|
||||||
url: '/news/topic?category=berita',
|
url: '/news/category/berita',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Kasus',
|
title: 'Kasus',
|
||||||
url: '/news/topic?category=kasus',
|
url: '/news/category/kasus',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Kajian',
|
title: 'Kajian',
|
||||||
url: '/news/topic?category=kajian',
|
url: '/news/category/kajian',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Lifestyle',
|
title: 'Lifestyle',
|
||||||
url: '/news/topic?category=lifestyle',
|
url: '/news/category/lifestyle',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Event',
|
title: 'Event',
|
||||||
url: '/news/topic?category=event',
|
url: '/news/category/event',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Travel',
|
title: 'Travel',
|
||||||
url: '/news/topic?category=travel',
|
url: '/news/category/travel',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,7 @@ export const BERITA: TNews = {
|
|||||||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.',
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.',
|
||||||
featured: '/images/news-4.jpg',
|
featured: '/images/news-4.jpg',
|
||||||
tags: ['Hukum Property', 'PREMIUM CONTENT'],
|
tags: ['Hukum Property', 'PREMIUM CONTENT'],
|
||||||
|
isPremium: true,
|
||||||
slug: 'helping-a-local-business-reinvent-itself',
|
slug: 'helping-a-local-business-reinvent-itself',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -2,7 +2,10 @@ export type TNews = {
|
|||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
type: 'hero' | 'grid'
|
type: 'hero' | 'grid'
|
||||||
items: Pick<TNewsDetail, 'title' | 'content' | 'featured' | 'slug' | 'tags'>[]
|
items: Pick<
|
||||||
|
TNewsDetail,
|
||||||
|
'title' | 'content' | 'featured' | 'slug' | 'tags' | 'isPremium'
|
||||||
|
>[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TNewsDetail = {
|
export type TNewsDetail = {
|
||||||
@ -13,5 +16,6 @@ export type TNewsDetail = {
|
|||||||
date: Date
|
date: Date
|
||||||
slug: string
|
slug: string
|
||||||
tags?: Array<string>
|
tags?: Array<string>
|
||||||
|
isPremium?: boolean
|
||||||
categories?: Array<string>
|
categories?: Array<string>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user