Commit 1cb6105 1 parent d3633c9 commit 1cb6105 Copy full SHA for 1cb6105
File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ Or use our favorite package manager.
18
18
19
19
## Usage
20
20
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:
22
23
23
- In your Astro project, edit the ` /src/content/config.ts ` :
24
+ ### Hive Blog Loader
24
25
25
26
``` ts
26
27
import { defineCollection } from " astro:content" ;
@@ -30,11 +31,22 @@ export const collections = {
30
31
blog: defineCollection ({
31
32
type: " content_layer" ,
32
33
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
33
38
})
34
39
};
35
40
```
36
41
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 ) .
38
50
39
51
## Contributing
40
52
You can’t perform that action at this time.
0 commit comments