Update CMS client configuration and refactor content organization

The code changes involve a significant update to the configuration of our CMS client. The nature of retrieving content items has been refactored to be more granular, allowing for the identification and fetching of content from specified collections rather than general categories. These modifications improve the efficiency and specificity of content queries. Furthermore, other changes were made to provide a better alignment of our content structure, including the reorganization of content files and renaming of image paths in various components for consistency.
This commit is contained in:
giancarlo
2024-04-10 15:52:26 +08:00
parent 006c4d430f
commit 44373c0372
39 changed files with 176 additions and 84 deletions

View File

@@ -19,7 +19,7 @@ async function DocsPage() {
const { t } = await createI18nServerInstance();
const docs = await client.getContentItems({
categories: ['documentation'],
collection: 'documentation',
});
// Filter out any docs that have a parentId, as these are children of other docs