07/02/2026

This commit is contained in:
2026-02-07 11:50:23 +07:00
parent 3c18f922b3
commit cb4a4dc482
11 changed files with 250 additions and 386 deletions

View File

@@ -20,8 +20,10 @@ export function resolveArticlePage(slug: string): ArticleResult | null {
}
// CATEGORY
const cats = categories.article.all_category.article;
for (const parent of cats) {
const { article, job, video } = categories.article.all_category;
const allCategories = [...article, ...job, ...video];
for (const parent of allCategories) {
if (parent.url === url) {
return {
type: "article_category",
@@ -39,6 +41,7 @@ export function resolveArticlePage(slug: string): ArticleResult | null {
}
}
// DETAIL
const detail = articleList
.flatMap(article => article.list)