diff --git a/assets/meta/post_list.json b/assets/meta/post_list.json
index 872db10..8808a66 100644
--- a/assets/meta/post_list.json
+++ b/assets/meta/post_list.json
@@ -1,70 +1,6 @@
{
- "last_generated": "2025-01-04 19:53:08",
+ "last_generated": "2025-01-04 12:52:32",
"categories": {
- "Blog": {
- "posts": [
- {
- "metadata": {
- "title": "3DS Programming - Using RomFS",
- "description": "A guide to using RomFS on the 3DS. (Old)",
- "date": "2024-12-31 16:00:00",
- "tags": [
- "3ds",
- "programming",
- "c",
- "devkitpro",
- "old"
- ],
- "previous": "old3ds_helloworld.md",
- "next": "old3ds_touchscreen.md"
- },
- "id": "blog/old3ds_romfs.md",
- "url": "/blog/old3ds_romfs.md",
- "hash": "0b28a366868e9fa564b6a33d9b1aa1d8269f7971497f25488f05f54929e88410"
- },
- {
- "metadata": {
- "title": "3DS Programming - Touchscreen Input",
- "description": "A guide to using the touchscreen on the 3DS. (Old)",
- "date": "2024-12-31 16:00:00",
- "tags": [
- "3ds",
- "programming",
- "c",
- "devkitpro",
- "old"
- ],
- "previous": "old3ds_romfs.md"
- },
- "id": "blog/old3ds_touchscreen.md",
- "url": "/blog/old3ds_touchscreen.md",
- "hash": "59e0b9d701646fd5f747713832c47ce451e0ebe0975d4a148a820ca795741c2b"
- },
- {
- "metadata": {
- "title": "3DS Programming - Hello World",
- "description": "A guide to creating a simple Hello, World program for the 3DS. (Old)",
- "date": "2024-12-31 16:00:00",
- "tags": [
- "3ds",
- "programming",
- "c",
- "devkitpro",
- "old"
- ],
- "next": "old3ds_romfs.md"
- },
- "id": "blog/old3ds_helloworld.md",
- "url": "/blog/old3ds_helloworld.md",
- "hash": "86e0bd1deae0d00b17ab0960634ea7292d6387063f70600cec4001564fde9514"
- }
- ],
- "title": "Blog",
- "description": "General blog posts",
- "tags": [
- "blog"
- ]
- },
"Site": {
"posts": [
{
@@ -77,8 +13,8 @@
"web"
]
},
- "id": "site/styling_test.md",
- "url": "/site/styling_test.md",
+ "id": "site/styling_test",
+ "url": "/site/styling_test",
"hash": "0ff9f34321a27f462ca26656a1dc5024c0e800ea1e176ff36316b158ab4606c9"
}
],
@@ -100,8 +36,8 @@
"resources"
]
},
- "id": "collections/lgbtq_resources.md",
- "url": "/collections/lgbtq_resources.md",
+ "id": "collections/lgbtq_resources",
+ "url": "/collections/lgbtq_resources",
"hash": "3da76064aa95cc06937bde01128ed44aafb850f35a43bd214ce0cd89a875c674"
},
{
@@ -115,8 +51,8 @@
"web"
]
},
- "id": "collections/badges.md",
- "url": "/collections/badges.md",
+ "id": "collections/badges",
+ "url": "/collections/badges",
"hash": "338ccfecc6523dff93708330a8b43af715f1e80d55e1cc3bea2d1a7306fc4f00"
},
{
@@ -129,8 +65,8 @@
"curated"
]
},
- "id": "collections/awesome.md",
- "url": "/collections/awesome.md",
+ "id": "collections/awesome",
+ "url": "/collections/awesome",
"hash": "0632400858006b93f2f36d87953538c2a400bacc75aaa29928aee226e8b343b1"
}
],
@@ -139,6 +75,70 @@
"tags": [
"collection"
]
+ },
+ "Guides": {
+ "posts": [
+ {
+ "metadata": {
+ "title": "3DS Programming - Using RomFS",
+ "description": "A guide to using RomFS on the 3DS. (Old)",
+ "date": "2024-12-31 16:00:00",
+ "tags": [
+ "3ds",
+ "programming",
+ "c",
+ "devkitpro",
+ "old"
+ ],
+ "previous": "old3ds_helloworld.md",
+ "next": "old3ds_touchscreen.md"
+ },
+ "id": "guides/old3ds_romfs",
+ "url": "/guides/old3ds_romfs",
+ "hash": "34062b79909f5b18a647b484687cf862e779c08da9fc6052c4ebab3eef67151c"
+ },
+ {
+ "metadata": {
+ "title": "3DS Programming - Touchscreen Input",
+ "description": "A guide to using the touchscreen on the 3DS. (Old)",
+ "date": "2024-12-31 16:00:00",
+ "tags": [
+ "3ds",
+ "programming",
+ "c",
+ "devkitpro",
+ "old"
+ ],
+ "previous": "old3ds_romfs.md"
+ },
+ "id": "guides/old3ds_touchscreen",
+ "url": "/guides/old3ds_touchscreen",
+ "hash": "c026e506fb60c8ed9943f5806e8adf611a382a7de34e30fc2a72f4578d66899e"
+ },
+ {
+ "metadata": {
+ "title": "3DS Programming - Hello World",
+ "description": "A guide to creating a simple Hello, World program for the 3DS. (Old)",
+ "date": "2024-12-31 16:00:00",
+ "tags": [
+ "3ds",
+ "programming",
+ "c",
+ "devkitpro",
+ "old"
+ ],
+ "next": "old3ds_romfs.md"
+ },
+ "id": "guides/old3ds_helloworld",
+ "url": "/guides/old3ds_helloworld",
+ "hash": "77a21a1201a35d6a85cb2305166cfb20a0a45546fea1f73fd620b2b84ec70fda"
+ }
+ ],
+ "title": "Guides",
+ "description": "Guides and tutorials",
+ "tags": [
+ "guide"
+ ]
}
}
}
\ No newline at end of file
diff --git a/components/Navbar.vue b/components/Navbar.vue
index f8e784f..e783b17 100644
--- a/components/Navbar.vue
+++ b/components/Navbar.vue
@@ -10,8 +10,8 @@ import Card from './Card.vue';
Home
Articles
- Awesome
- Badges
+ Awesome
+ Badges
Hosted with GitHub Pages
diff --git a/content/blog/old3ds_helloworld.md b/content/guides/old3ds_helloworld.md
similarity index 89%
rename from content/blog/old3ds_helloworld.md
rename to content/guides/old3ds_helloworld.md
index 51d585b..4232c22 100644
--- a/content/blog/old3ds_helloworld.md
+++ b/content/guides/old3ds_helloworld.md
@@ -8,11 +8,12 @@ next: old3ds_romfs.md
# Hello, World!
-> [!warning]
-> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
-> I might make a new one in the future.
-> I'm doing some alterations at least to make it more readable.
-> It doesn't teach why things are done very well is my primary issue with it.
+::alert{type="warning"}
+This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
+I might make a new one in the future.
+I'm doing some alterations at least to make it more readable.
+It doesn't teach why things are done very well is my primary issue with it.
+::
'Hello, World!' is a very simple program used for checking a program's build system, and showing its basic syntax.
We should do both before going forward. You should have your project set up for this.
diff --git a/content/blog/old3ds_romfs.md b/content/guides/old3ds_romfs.md
similarity index 89%
rename from content/blog/old3ds_romfs.md
rename to content/guides/old3ds_romfs.md
index e5c0ccf..a4bdc1f 100644
--- a/content/blog/old3ds_romfs.md
+++ b/content/guides/old3ds_romfs.md
@@ -9,11 +9,12 @@ next: old3ds_touchscreen.md
# Accessing ROM files with RomFS
-> [!warning]
-> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
-> I might make a new one in the future.
-> I'm doing some alterations at least to make it more readable.
-> It doesn't teach why things are done very well is my primary issue with it.
+::alert{type="warning"}
+This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
+I might make a new one in the future.
+I'm doing some alterations at least to make it more readable.
+It doesn't teach why things are done very well is my primary issue with it.
+::
RomFS allows us to access files stored on the ROM file, cartridge, or application.
diff --git a/content/blog/old3ds_touchscreen.md b/content/guides/old3ds_touchscreen.md
similarity index 86%
rename from content/blog/old3ds_touchscreen.md
rename to content/guides/old3ds_touchscreen.md
index 125b8f3..454fbfd 100644
--- a/content/blog/old3ds_touchscreen.md
+++ b/content/guides/old3ds_touchscreen.md
@@ -8,11 +8,12 @@ previous: old3ds_romfs.md
# Touchscreen Input
-> [!warning]
-> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
-> I might make a new one in the future.
-> I'm doing some alterations at least to make it more readable.
-> It doesn't teach why things are done very well is my primary issue with it.
+::alert{type="warning"}
+This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
+I might make a new one in the future.
+I'm doing some alterations at least to make it more readable.
+It doesn't teach why things are done very well is my primary issue with it.
+::
Here we will find the position of a touch on the touchscreen.
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 9d6d9ff..6fa7a02 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -22,6 +22,11 @@ export default defineNuxtConfig({
autoprefixer: {},
},
},
+ routeRules: {
+ '/article/:category:/:id': {
+ redirect: '/article/:category:/:id/index.html'
+ }
+ },
app: {
pageTransition: {
name: 'page',
@@ -38,7 +43,8 @@ export default defineNuxtConfig({
},
nitro: {
prerender: {
- routes: blog_nitro_routes
+ routes: blog_nitro_routes,
+ autoSubfolderIndex: false
}
},
particles: {
diff --git a/utils/page_updater/pages.ts b/utils/page_updater/pages.ts
index 5f1114c..3fba65b 100644
--- a/utils/page_updater/pages.ts
+++ b/utils/page_updater/pages.ts
@@ -73,18 +73,23 @@ export function getPagesInfo(searchDirectory: string, pageLocation: PageLocation
console.log(files);
files.forEach((file) => {
- const fullPath = path.join(currentDirectory, file);
- const localPath = fullPath.replace(pageLocation.root, pageLocation.map);
+ var fullPath = path.join(currentDirectory, file);
+ var localPath = fullPath.replace(pageLocation.root, pageLocation.map);
console.log(fullPath);
console.log(localPath);
if (fs.lstatSync(fullPath).isDirectory()) {
Object.assign(pageInfo, getPagesInfo(path.join(searchDirectory, file), pageLocation));
} else if (file.endsWith('.md')) {
+
const metadata = getMetadata(fullPath);
const sha256Hash = getSha256Hash(fullPath);
const charCount = getCharCount(fullPath);
const wordCount = getWordCount(fullPath);
+ // Remove the .md extension
+ localPath = localPath.replace('.md', '');
+ fullPath = fullPath.replace('.md', '');
+
pageInfo[fullPath] = {
local_path: localPath,
absolute_path: fullPath,
diff --git a/utils/page_updater/update_pagelist.ts b/utils/page_updater/update_pagelist.ts
index 8cc8c21..1c7b1c6 100644
--- a/utils/page_updater/update_pagelist.ts
+++ b/utils/page_updater/update_pagelist.ts
@@ -52,13 +52,6 @@ function generatePageCategory(pagesInfo: Record): PageCategory {
}
const postDirectories: pages.PageLocation[] = [
- {
- title: "Blog",
- description: "General blog posts",
- tags: ["blog"],
- map: "blog",
- root: "content/blog"
- },
{
title: "Site",
description: "Articles to test site functionality",
@@ -72,6 +65,13 @@ const postDirectories: pages.PageLocation[] = [
tags: ["collection"],
map: "collections",
root: "content/collections"
+ },
+ {
+ title: "Guides",
+ description: "Guides and tutorials",
+ tags: ["guide"],
+ map: "guides",
+ root: "content/guides"
}
]