Skip to content

Commit 1cb6105

Browse files
committed
Update REAMDE.md
1 parent d3633c9 commit 1cb6105

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ Or use our favorite package manager.
1818

1919
## Usage
2020

21-
### Hive Blog Loader
21+
In your Astro project, edit the `/src/content/config.ts` and define any collections using the loaders
22+
that this package provides:
2223

23-
In your Astro project, edit the `/src/content/config.ts`:
24+
### Hive Blog Loader
2425

2526
```ts
2627
import { defineCollection } from "astro:content";
@@ -30,11 +31,22 @@ export const collections = {
3031
blog: defineCollection({
3132
type: "content_layer",
3233
loader: hiveBlogLoader("hive.coding") // Selected username
34+
}),
35+
accounts: defineCollection({
36+
type: "content_layer",
37+
loader: hiveAccountsLoader("hive.coding") // or ["acc1", "acc2"] for multiple accounts
3338
})
3439
};
3540
```
3641

37-
For now only `hiveBlogLoader` is available, more coming soon!
42+
## Learn more
43+
44+
- [Astro](https://astro.build/)
45+
- [Content Layer API](https://astro.build/blog/content-layer-deep-dive/)
46+
47+
## Support
48+
49+
If you have any questions or need help, please join our [Discord server](https://discord.gg/3u9v7b4w).
3850

3951
## Contributing
4052

0 commit comments

Comments
 (0)