This commit is contained in:
Mrrp 2025-01-04 02:48:50 -08:00
parent 20545df5d5
commit 97e38cde98

View file

@ -23,7 +23,7 @@ function generatePageList(pagesInfo: Record<string, any>): PageList {
const pageDict: Page = {
metadata: page.metadata,
id: page.local_path,
url: page.absolute_path.replace("assets", ""),
url: page.absolute_path.replace("content", ""),
hash: page.hash
};
pageList.push(pageDict);
@ -44,7 +44,7 @@ function generatePageList(pagesInfo: Record<string, any>): PageList {
}
// Get the page list and print it
const postList = generatePageList(pages.getPagesInfo("", "assets/blog"));
const postList = generatePageList(pages.getPagesInfo("", "content/blog"));
console.log(JSON.stringify(postList, null, 2));
// Output to assets/blog_list.json (overwriting)