:3
This commit is contained in:
parent
20545df5d5
commit
97e38cde98
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ function generatePageList(pagesInfo: Record<string, any>): PageList {
|
||||||
const pageDict: Page = {
|
const pageDict: Page = {
|
||||||
metadata: page.metadata,
|
metadata: page.metadata,
|
||||||
id: page.local_path,
|
id: page.local_path,
|
||||||
url: page.absolute_path.replace("assets", ""),
|
url: page.absolute_path.replace("content", ""),
|
||||||
hash: page.hash
|
hash: page.hash
|
||||||
};
|
};
|
||||||
pageList.push(pageDict);
|
pageList.push(pageDict);
|
||||||
|
@ -44,7 +44,7 @@ function generatePageList(pagesInfo: Record<string, any>): PageList {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the page list and print it
|
// 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));
|
console.log(JSON.stringify(postList, null, 2));
|
||||||
|
|
||||||
// Output to assets/blog_list.json (overwriting)
|
// Output to assets/blog_list.json (overwriting)
|
||||||
|
|
Loading…
Add table
Reference in a new issue