adds seo title description and h1 changes

This commit is contained in:
akcodez
2024-02-07 10:43:51 -08:00
parent 9faf1fb88f
commit be99807d2c
5 changed files with 15 additions and 12 deletions

View File

@@ -28,10 +28,12 @@ export function indexPages() {
const childRoutesData = await Promise.all(
childRoutes.map(async route => {
const { parsed } = contentProvider.loadContent(route.fsPath, 'frontmatter');
const slug = route.slug;
const title = await route.getNavText();
return {
...parsed?.data,
slug: route.slug,
title: await route.getNavText(),
slug,
title,
};
})
);