Skip to content
Discussion options

You must be logged in to vote

Hi.
Indeed, post.data.content contains the raw file content of the page. The rendered content is stored in post.content.

But post.content not only contains the MDX code rendered but also the layout used to wrap this code. There's similar issue at #357 regarding to how to access to the rendered content before being merged with the layout, and the only current way is by creating a "proxy" layout to store the content.

Due this is a recurrent issue, I will find a way to integrate this behavior natively on Lume.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ootoovak
Comment options

You must be logged in to vote
3 replies
@oscarotero
Comment options

@ootoovak
Comment options

@ootoovak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants