This commit is contained in:
Mrrp 2025-01-04 02:47:38 -08:00
parent 2c66a9b678
commit 9aa81ef675
28 changed files with 1735 additions and 242 deletions

View file

@ -101,7 +101,7 @@ def generate_post_history(pages_info, state):
return post_history_json
# Get the pages info from the public/blog directory
pages_info = pages.get_pages_info("", "public/blog")
pages_info = pages.get_pages_info("", "assets/blog")
# Load the previous state from the assets/post_history.json file
try:

View file

@ -52,7 +52,7 @@ def generate_page_list(pages_info):
return page_list_json
# Print the page list
post_list = generate_page_list(pages.get_pages_info("", "public/blog"));
post_list = generate_page_list(pages.get_pages_info("", "assets/blog"));
print(post_list)
# Output to assets/blog_list.json (overwriting)

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("public", ""),
url: page.absolute_path.replace("assets", ""),
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("", "public/blog"));
const postList = generatePageList(pages.getPagesInfo("", "assets/blog"));
console.log(JSON.stringify(postList, null, 2));
// Output to assets/blog_list.json (overwriting)