From c5dd73a3a9bf41104d4070caa1152a417c35a2f2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 18 Feb 2019 14:20:06 -0500 Subject: [PATCH] AP: Also generate JSON indexes --- lib/generate/activitypub.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/generate/activitypub.ts b/lib/generate/activitypub.ts index 6f36aaa..17941c1 100644 --- a/lib/generate/activitypub.ts +++ b/lib/generate/activitypub.ts @@ -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()))