Skip to content

Commit

Permalink
fix home heading
Browse files Browse the repository at this point in the history
  • Loading branch information
JPrisk committed Mar 10, 2023
1 parent f0bbd42 commit 9f1779c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ export type PostOrExternalArticleProps =
const reader = createReader("", config);

async function getHomeData() {
return await reader.singletons.home.read();
const reader = createReader("", config);
const homePage = await reader.singletons.home.read();
const homePageHeading = await (homePage?.heading() || []);

return {
...homePage,
heading: homePageHeading,
};
}

async function getPostData() {
Expand Down

1 comment on commit 9f1779c

@vercel
Copy link

@vercel vercel bot commented on 9f1779c Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.