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 = [
|
||||
{
|
||||
title: 'Spotlight',
|
||||
url: '/news/topic?category=spotlight',
|
||||
url: '/news/category/spotlight',
|
||||
},
|
||||
{
|
||||
title: 'Berita',
|
||||
url: '/news/topic?category=berita',
|
||||
url: '/news/category/berita',
|
||||
},
|
||||
{
|
||||
title: 'Kasus',
|
||||
url: '/news/topic?category=kasus',
|
||||
url: '/news/category/kasus',
|
||||
},
|
||||
{
|
||||
title: 'Kajian',
|
||||
url: '/news/topic?category=kajian',
|
||||
url: '/news/category/kajian',
|
||||
},
|
||||
{
|
||||
title: 'Lifestyle',
|
||||
url: '/news/topic?category=lifestyle',
|
||||
url: '/news/category/lifestyle',
|
||||
},
|
||||
{
|
||||
title: 'Event',
|
||||
url: '/news/topic?category=event',
|
||||
url: '/news/category/event',
|
||||
},
|
||||
{
|
||||
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.',
|
||||
featured: '/images/news-4.jpg',
|
||||
tags: ['Hukum Property', 'PREMIUM CONTENT'],
|
||||
isPremium: true,
|
||||
slug: 'helping-a-local-business-reinvent-itself',
|
||||
},
|
||||
],
|
||||
|
||||
@ -2,7 +2,10 @@ export type TNews = {
|
||||
title: string
|
||||
description: string
|
||||
type: 'hero' | 'grid'
|
||||
items: Pick<TNewsDetail, 'title' | 'content' | 'featured' | 'slug' | 'tags'>[]
|
||||
items: Pick<
|
||||
TNewsDetail,
|
||||
'title' | 'content' | 'featured' | 'slug' | 'tags' | 'isPremium'
|
||||
>[]
|
||||
}
|
||||
|
||||
export type TNewsDetail = {
|
||||
@ -13,5 +16,6 @@ export type TNewsDetail = {
|
||||
date: Date
|
||||
slug: string
|
||||
tags?: Array<string>
|
||||
isPremium?: boolean
|
||||
categories?: Array<string>
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user