diff --git a/assets/blog_list.json b/assets/blog_list.json index 0553911..78470f9 100644 --- a/assets/blog_list.json +++ b/assets/blog_list.json @@ -1,5 +1,5 @@ { - "last_generated": "2025-01-02 05:33:27", + "last_generated": "2025-01-01 21:44:08", "posts": [ { "metadata": { @@ -17,23 +17,9 @@ "next": "old3ds_touchscreen.md" }, "id": "/old3ds_romfs.md", - "url": "/old3ds_romfs.md", + "url": "/blog/old3ds_romfs.md", "hash": "0b28a366868e9fa564b6a33d9b1aa1d8269f7971497f25488f05f54929e88410" }, - { - "metadata": { - "title": "Styling Test", - "description": "A test post to see how the site styling looks", - "date": "2025-01-01", - "tags": [ - "meta", - "web" - ] - }, - "id": "/styling_test.md", - "url": "/styling_test.md", - "hash": "8e6c14fdef5fd67ea17dcc8b58d59f2040d8250c15c2d18d3e1fdc1b1b60dc54" - }, { "metadata": { "title": "Awesome", @@ -45,26 +31,23 @@ ] }, "id": "/awesome.md", - "url": "/awesome.md", + "url": "/blog/awesome.md", "hash": "5d7fb989c4504082cc88cd284347dbb54b221834d2c281210be7c507cd07ae23" }, { "metadata": { - "title": "3DS Programming - Hello World", - "description": "A guide to creating a simple Hello, World program for the 3DS. (Old)", - "date": "2025-01-01", + "title": "Badges!", + "description": "A collection of 88x31 badges for various things", + "date": "2024-12-21", "tags": [ - "3ds", - "programming", - "c", - "devkitpro", - "old" - ], - "next": "old3ds_romfs.md" + "badges", + "retro", + "web" + ] }, - "id": "/old3ds_helloworld.md", - "url": "/old3ds_helloworld.md", - "hash": "86e0bd1deae0d00b17ab0960634ea7292d6387063f70600cec4001564fde9514" + "id": "/badges.md", + "url": "/blog/badges.md", + "hash": "338ccfecc6523dff93708330a8b43af715f1e80d55e1cc3bea2d1a7306fc4f00" }, { "metadata": { @@ -81,23 +64,40 @@ "previous": "old3ds_romfs.md" }, "id": "/old3ds_touchscreen.md", - "url": "/old3ds_touchscreen.md", + "url": "/blog/old3ds_touchscreen.md", "hash": "59e0b9d701646fd5f747713832c47ce451e0ebe0975d4a148a820ca795741c2b" }, { "metadata": { - "title": "Badges!", - "description": "A collection of 88x31 badges for various things", - "date": "2024-12-21", + "title": "Styling Test", + "description": "A test post to see how the site styling looks", + "date": "2025-01-01", "tags": [ - "badges", - "retro", + "meta", "web" ] }, - "id": "/badges.md", - "url": "/badges.md", - "hash": "338ccfecc6523dff93708330a8b43af715f1e80d55e1cc3bea2d1a7306fc4f00" + "id": "/styling_test.md", + "url": "/blog/styling_test.md", + "hash": "8e6c14fdef5fd67ea17dcc8b58d59f2040d8250c15c2d18d3e1fdc1b1b60dc54" + }, + { + "metadata": { + "title": "3DS Programming - Hello World", + "description": "A guide to creating a simple Hello, World program for the 3DS. (Old)", + "date": "2025-01-01", + "tags": [ + "3ds", + "programming", + "c", + "devkitpro", + "old" + ], + "next": "old3ds_romfs.md" + }, + "id": "/old3ds_helloworld.md", + "url": "/blog/old3ds_helloworld.md", + "hash": "86e0bd1deae0d00b17ab0960634ea7292d6387063f70600cec4001564fde9514" } ] } \ No newline at end of file diff --git a/assets/post_history.json b/assets/post_history.json index 4269456..eccd154 100644 --- a/assets/post_history.json +++ b/assets/post_history.json @@ -103,7 +103,10 @@ }, { "2025-01-02 05:33:28": [] + }, + { + "2025-01-01 21:42:58": [] } ], - "last_generated": "2025-01-02 05:33:28" + "last_generated": "2025-01-01 21:42:58" } \ No newline at end of file diff --git a/components/PostCard.vue b/components/PostCard.vue index 2800033..7383717 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -39,7 +39,7 @@ async function fetchData() { loading.value = true try { - data.value = await (await fetch("/blog" + url.value)).text() + data.value = await (await fetch(url.value)).text() console.log(url.value) const processed = fm(data.value) background.value = processed.attributes.background diff --git a/utils/pageupdater/__pycache__/pages.cpython-312.pyc b/utils/pageupdater/__pycache__/pages.cpython-312.pyc index 9827374..b7e8936 100644 Binary files a/utils/pageupdater/__pycache__/pages.cpython-312.pyc and b/utils/pageupdater/__pycache__/pages.cpython-312.pyc differ diff --git a/utils/pageupdater/page_list_gen.py b/utils/pageupdater/page_list_gen.py index 4c8adfe..ca50666 100644 --- a/utils/pageupdater/page_list_gen.py +++ b/utils/pageupdater/page_list_gen.py @@ -28,7 +28,8 @@ def generate_page_list(pages_info): page_dict = { "metadata": page["metadata"], 'id': page["local_path"], - 'url': page["local_path"], + # Remove the public/ prefix from the path + 'url': page["absolute_path"].replace("public", ""), "hash": page["hash"], } diff --git a/utils/pageupdater/pages.py b/utils/pageupdater/pages.py index 8457cc3..ed6327f 100644 --- a/utils/pageupdater/pages.py +++ b/utils/pageupdater/pages.py @@ -79,6 +79,7 @@ def get_pages_info(search_directory, root_directory): # Add the metadata, sha256 hash, character count, word count, and path to the dictionary page_info[full_path] = { "local_path": local_path, + "absolute_path": full_path, "metadata": metadata, "hash": sha256_hash, "char_count": char_count,