Commit Graph

14 Commits

Author SHA1 Message Date
5d3d754252 Fix tag URL encoding for non-ASCII characters
Updated getTagSlug() to properly encode tags with spaces and non-ASCII characters (like Chinese). The function now:
- Normalizes multiple spaces/dashes to single dashes
- Properly encodes non-ASCII characters using encodeURIComponent
- Prevents issues with URL encoding on Vercel deployment

This fixes tags like "Medicine - 醫學" being displayed as "medicine---%E9%86%AB%E5%AD%B8" by generating clean URLs like "medicine-%E9%86%AB%E5%AD%B8".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 23:10:34 +08:00
4c08413936 Migrate to Contentlayer2 2025-11-19 21:46:49 +08:00
80d0b236c5 Refine navigation and post UI 2025-11-18 17:34:05 +08:00
96ebca37d6 Add storyline navigation rail for posts 2025-11-18 16:45:46 +08:00
4b3329d66f Add related posts section and blog search 2025-11-18 16:43:52 +08:00
42ea2de3bd Add env-based short about text under sidebar avatar and remove 'about site' card 2025-11-18 00:18:15 +08:00
4cb3e7627b Introduce env-driven accent color system and apply to links, icons, and tags 2025-11-17 22:46:55 +08:00
593a5ff272 Add gravatar hero with social icons to right sidebar 2025-11-17 22:01:25 +08:00
bede4a2f3e Stabilize tag URLs using slugs instead of raw tag text 2025-11-17 18:48:50 +08:00
3253e70a37 Add tag cloud to right sidebar 2025-11-17 18:38:08 +08:00
b89c01c966 Tweak card images, dark mode text, social links, and add right sidebar 2025-11-17 17:19:47 +08:00
237bb083cd Add and wire extended site env config 2025-11-17 16:51:59 +08:00
10948aa2ca Add env-based site configuration 2025-11-17 16:32:09 +08:00
0c64279e34 Initial commit 2025-11-17 15:28:20 +08:00