+17
.changeset/true-terms-start.md
+17
.changeset/true-terms-start.md
···
1
+
---
2
+
"@nulfrost/leaflet-loader-astro": minor
3
+
---
4
+
5
+
Added the ability to use a handle or did when specifying a repo for leafletStaticLoader and leafletLiveLoader
6
+
7
+
8
+
```ts
9
+
import { defineLiveCollection} from "astro:content";
10
+
import { leafletLiveLoader } from "leaflet-loader-astro";
11
+
12
+
const documents = defineLiveCollection({
13
+
loader: leafletLiveLoader({ repo: "dane.computer" }), // or repo: did:plc:qttsv4e7pu2jl3ilanfgc3zn, both work!
14
+
});
15
+
16
+
export const collections = { documents };
17
+
```