Skip to content

Adjusting URL and Display Settings for Chinese Categories and Tags in Astrowind Theme #397

Closed
@zipziz

Description

@zipziz

Hello,

First off, I want to express my appreciation for the Astrowind theme; it's fantastic, and your hard work is truly valued.

I'm currently applying Astrowind to a project in Chinese and have encountered some issues that I hope to get your guidance on:

  1. When the category and tags in the frontmatter of MDX files located in src/content/post/ are in Chinese, the URLs for categories and tags are generated with syllable-based pinyin. For instance, the tag “数字技术” results in a URL like https://astrowind2.vercel.app/category/shu4-zi4-ji4-shu4. How can I modify the code so that the URL appears as https://astrowind2.vercel.app/category/shu-zi-ji-shu without the tone marks?

  2. On the blog post detail pages, such as https://astrowind2.vercel.app/20240324-dong1-zhi4, the URL includes syllable tone marks. How can I remove these tone marks from the URLs?

  3. Similarly, on the blog post detail pages (e.g., https://astrowind2.vercel.app/20240324-dong1-zhi), both categories and tags are displayed in pinyin with tone marks. Is there a way to display them in Chinese, as per the frontmatter's categories and tags?

Your advice on these matters would be greatly appreciated. You can view the code at https://github.com/zipziz/astrowind/.

Thank you for your time and assistance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions