@restive dock Hmm, so, let me think how to put it clearer.
In a list of content sourced from a folder of markdown files, for example this, which is passing values of each post to a component…
<ul>
{
page.data.map((post) => (
<>
<Post
href={post.url}
title={post.frontmatter.title}
body=???
date={post.frontmatter.date}
publication_url={post.frontmatter.publication_url}
image={post.frontmatter.image}
/>
</>
))
}
</ul>
Most values are in front matter or the URL for example.
But I cannot figure out what to pass as the value for the main body of the content, all the markdown after the front matter basically. If I debug, I can see a value for Content but it passes nothing to the component
{
_internal: [Getter],
frontmatter: [Getter],
file: [Getter],
url: [Getter],
rawContent: [Getter],
compiledContent: [Getter],
getHeadings: [Getter],
getHeaders: [Getter],
Content: [Getter],
default: [AsyncFunction: Content] {
[Symbol(astro.needsHeadRendering)]: false
},
[Symbol(Symbol.toStringTag)]: 'Module'
},
rawContent and compiledContent have values though, but they seem to have their own issues seperate from this.
tldr; What is the recommended Astro way to render the content from a markdown file in a list, like a blog post summary. Ideally truncated, but there's other ways of doing that.
For example, here's how Hugo does it - https://gohugo.io/templates/lists/#example-project-directory