Update layout, navigation, and content for documentation pages

Enhanced the documentation pages by updating the layout with aesthetic adjustments and adding better navigation elements. New documentation content was added: 'Authentication', 'Getting Started', and their child pages. This ensures users have a clearer path when viewing, navigating, and accessing the information they need. "Read more" fallback label was added to the documentation cards for better accessibility.
This commit is contained in:
giancarlo
2024-04-11 11:27:16 +08:00
parent 3e7a567786
commit 1c344d0d7f
12 changed files with 167 additions and 29 deletions

View File

@@ -72,7 +72,13 @@ export class KeystaticClient implements CmsClient {
return Promise.resolve(undefined);
}
return this.mapPost({ entry: doc, slug: params.slug }, []);
const allPosts = await reader.collections[collection].all();
const children = allPosts.filter(
(item) => item.entry.parent === params.slug,
);
return this.mapPost({ entry: doc, slug: params.slug }, children);
}
async getCategories() {