denoland / deno-astro-adapter

A Deno adapter for running Astro applications on the Deno runtime.
https://npm.im/@deno/astro-adapter
MIT License
84 stars 19 forks source link

Astro content collections not working #8

Open jueewo opened 1 year ago

jueewo commented 1 year ago

I'm trying to get content collections running using SSR with Deno. Using the deno-astro-template Astro works, but the collections is empty:

---
import Layout from "../../layouts/Layout.astro" //"../../layouts/main.astro";
import { getCollection, getEntry } from "astro:content";

const blog_carddata = (await getCollection("blog"));
---

<Layout>
<div>CARDDATA: {blog_carddata}</div>
</Layout>