AP: Also generate JSON indexes
This commit is contained in:
parent
e4b3a5f68d
commit
c5dd73a3a9
|
@ -14,7 +14,9 @@ export default async function activitypub(posts: Page[]) {
|
|||
name: base,
|
||||
ext: ".json"
|
||||
});
|
||||
util.write(dest, JSON.stringify(object));
|
||||
const data = JSON.stringify(object);
|
||||
util.write(dest, data);
|
||||
util.write(path.join(post.metadata.permalink, "index.html.json"), data);
|
||||
}
|
||||
|
||||
util.write("ap/actor", JSON.stringify(actorObject()))
|
||||
|
|
Loading…
Reference in New Issue