fubits.dev fubits.dev
index.astro

Async Test Content

Server-Side Component - should be prerendered
Svelte Component
async Svelte()

Where was the Declaration of Independence signed? At the bottom!

Astro Content:
const post1 = await getEntry('blog', 'post-1')
Object.keys(post1)
id,data,body,filePath,digest,rendered,collection
post1.rendered
{"html":"<h1 id=\"hello-world\">Hello World</h1>\n<p>This is my first blog post. It’s pretty minimal but gets the job done.</p>\n<p>Here’s some more content to make it look like a real post.</p>","metadata":{"headings":[{"depth":1,"slug":"hello-world","text":"Hello World"}],"localImagePaths":[],"remoteImagePaths":[],"frontmatter":{"title":"First Blog Post","date":"2024-01-15T00:00:00.000Z"},"imagePaths":[]}}
Rendered HTML
{@html post1?.rendered?.html}

Hello World

This is my first blog post. It’s pretty minimal but gets the job done.

Here’s some more content to make it look like a real post.