Astro Content Layer loader for the Hive blockchain
npm install @onhive.io/astro-loader
Or use our favorite package manager.
In your Astro project, edit the /src/content/config.ts
:
import { defineCollection } from "astro:content";
import { hiveBlogLoader } from "@onhive.io/astro-loader";
export const collections = {
blog: defineCollection({
type: "content_layer",
loader: hiveBlogLoader("hive.coding") // Selected username
})
};
For now only hiveBlogLoader
is available, more coming soon!
See CONTRIBUTING.md for more information.
This project is licensed under the MIT License. See the LICENSE file for more information.