Hi,
How can I access the body of a markdown post file programmatically?
I can access the title by doing something like page.data.title
, but how can I access the body of the post?
Thanks
Hi,
How can I access the body of a markdown post file programmatically?
I can access the title by doing something like page.data.title
, but how can I access the body of the post?
Thanks
Maybe you want page.render?
If you’re looking for the raw source, I believe there is no simple method. I have seen some people read the file from disk themselves, but I personally would create a “null renderer” to take advantage of the rendering pipeline’s caching, metadata stripping, etc.
Hi, thanks. will check it.