Skip to content

Commit

Permalink
Add page props that were missing when a page is rendered for the feed
Browse files Browse the repository at this point in the history
  • Loading branch information
bensmithett committed Sep 6, 2022
1 parent 06a76dd commit 12a44c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/feeds/posts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export default function renderFeed (pages) {
title: FEED_TITLE,
home_page_url: `${SITE_HOST}/`,
feed_url: `${SITE_HOST}/feed.json`,
items: posts.map(({ Component, urlPath, meta }) => ({
items: posts.map(({ Component, urlPath, meta, tableOfContents }) => ({
id: urlPath,
url: `${SITE_HOST}${urlPath}`,
title: meta.title,
date_published: dayjs(meta.date).toISOString(),
content_text: ReactDOMServer.renderToStaticMarkup(
<RendererProvider renderer={createFelaRenderer()}>
<Component pages={pages} />
<Component meta={meta} tableOfContents={tableOfContents} pages={pages} />
</RendererProvider>
)
}))
Expand Down

0 comments on commit 12a44c8

Please sign in to comment.