From 1cb6105c788462d502ff79e2cc9e670880249418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ciszczo=C5=84?= Date: Sun, 24 Nov 2024 18:04:43 +0100 Subject: [PATCH] Update REAMDE.md --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b98e6a..705c3e7 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,10 @@ Or use our favorite package manager. ## Usage -### Hive Blog Loader +In your Astro project, edit the `/src/content/config.ts` and define any collections using the loaders +that this package provides: -In your Astro project, edit the `/src/content/config.ts`: +### Hive Blog Loader ```ts import { defineCollection } from "astro:content"; @@ -30,11 +31,22 @@ export const collections = { blog: defineCollection({ type: "content_layer", loader: hiveBlogLoader("hive.coding") // Selected username + }), + accounts: defineCollection({ + type: "content_layer", + loader: hiveAccountsLoader("hive.coding") // or ["acc1", "acc2"] for multiple accounts }) }; ``` -For now only `hiveBlogLoader` is available, more coming soon! +## Learn more + +- [Astro](https://astro.build/) +- [Content Layer API](https://astro.build/blog/content-layer-deep-dive/) + +## Support + +If you have any questions or need help, please join our [Discord server](https://discord.gg/3u9v7b4w). ## Contributing