AP: Also generate JSON indexes

This commit is contained in:
Shadowfacts 2019-02-18 14:20:06 -05:00
parent e4b3a5f68d
commit c5dd73a3a9
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 1 deletions

View File

@ -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()))