From 61e90aef4fcc2f7954b05ddd6179cd9519ffa1f0 Mon Sep 17 00:00:00 2001 From: Seven Of Aces Date: Wed, 1 Jan 2025 14:17:16 -0800 Subject: [PATCH] added old 3ds stuff --- assets/blog_list.json | 23 +- assets/markdown_conf.ts | 13 +- components/Markdown.vue | 1 - components/PostCard.vue | 144 +- deno.lock | 5812 +---------------- pages/blog.vue | 40 +- public/blog/old3ds_helloworld.md | 129 + public/blog/old3ds_romfs.md | 161 + public/blog/old3ds_touchscreen.md | 98 + public/blog/styling_test.md | 2 +- .../files/old3ds/helloworld/dkp_progress0.png | Bin 0 -> 1480 bytes .../files/old3ds/touchscreen/dkp_touch0.png | Bin 0 -> 1234 bytes utils/track_posts.sh | 4 +- 13 files changed, 853 insertions(+), 5574 deletions(-) create mode 100644 public/blog/old3ds_helloworld.md create mode 100644 public/blog/old3ds_romfs.md create mode 100644 public/blog/old3ds_touchscreen.md create mode 100644 public/files/old3ds/helloworld/dkp_progress0.png create mode 100644 public/files/old3ds/touchscreen/dkp_touch0.png diff --git a/assets/blog_list.json b/assets/blog_list.json index 838a5c2..00f1859 100644 --- a/assets/blog_list.json +++ b/assets/blog_list.json @@ -1,5 +1,12 @@ { "posts": [ + { + "metadata": { + "description": "A guide to using RomFS on the 3DS. (Old)", "date": "2025-01-01", "tags": ["3ds", "programming", "c", "devkitpro", "old"], "previous": "old3ds_helloworld.md", "next": "old3ds_touchscreen.md" + }, + "id": "old3ds_romfs", + "url": "/blog/old3ds_romfs.md" + }, { "metadata": { "description": "A curated list of awesome stuff I like", "date": "2024-11-26", "tags": ["awesome", "curated"] @@ -16,10 +23,24 @@ }, { "metadata": { - "description": "A test post to see how the site styling looks", "date": "2024-12-31", "tags": ["meta", "web"] + "description": "A guide to using the touchscreen on the 3DS. (Old)", "date": "2025-01-01", "tags": ["3ds", "programming", "c", "devkitpro", "old"], "previous": "old3ds_romfs.md" + }, + "id": "old3ds_touchscreen", + "url": "/blog/old3ds_touchscreen.md" + }, + { + "metadata": { + "description": "A test post to see how the site styling looks", "date": "2025-01-01", "tags": ["meta", "web"] }, "id": "styling_test", "url": "/blog/styling_test.md" + }, + { + "metadata": { + "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", + "url": "/blog/old3ds_helloworld.md" } ] } diff --git a/assets/markdown_conf.ts b/assets/markdown_conf.ts index 1181259..b177bfa 100644 --- a/assets/markdown_conf.ts +++ b/assets/markdown_conf.ts @@ -31,17 +31,8 @@ export default function configured_markdown(): MarkdownIt { ""; }, }); - // .use(figure, { - // mathFence: true, - // render: (content: any, displayMode: any) => { - // // render tex here and return svg - // console.log("figure render"); - // console.log(content); - // return TeXToSVG(content); - // }, - // }); - md = md.use(tab) + md = md .use(tasklist) .use(mark) .use(footnote) @@ -51,6 +42,8 @@ export default function configured_markdown(): MarkdownIt { "important", "success", "caution", "question", "done", "quote", "deprecated", "example" ], + }).use(tab, { + name: "tabs" }); md.renderer.rules.text = function (tokens, idx, options, env, self) { diff --git a/components/Markdown.vue b/components/Markdown.vue index dd55b0a..6d3a8a3 100644 --- a/components/Markdown.vue +++ b/components/Markdown.vue @@ -301,5 +301,4 @@ Hosted @apply border-2 border-purple-600; box-shadow: 0 0 7px #A020F0; } - \ No newline at end of file diff --git a/components/PostCard.vue b/components/PostCard.vue index f8fa211..4e1df69 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -1,10 +1,17 @@