Monolingual article demo 单语言文章效果测试

This post is intentionally stored only once so the current behavior is easy to inspect. 这篇文章故意只存一份,用来观察当前实现下单语言内容会如何显示。

All notes 全部笔记
  1. Technical thinking starts here 这里将会分享我的技术思考与见解
  2. Monolingual article demo 单语言文章效果测试

这是一篇专门为了验证当前内容系统行为而写的测试文章。

它只放在 src/content/chinese 目录里,没有对应的英文文件,也没有像之前那样把正文拆成中英文两个区块。

如果你现在切换网站语言:

  • 列表页仍然会看到这篇文章
  • 文章标题和摘要会跟着切换,因为 frontmatter 里仍然有 enzh
  • 但正文会继续显示中文,因为正文本身没有语言分块,也没有按语言做文章级别过滤

换句话说,当前系统切换的是 UI 文案和局部双语字段,不是“只展示当前语言的文章集合”。

这篇文章的存在就是为了把这个事实展示得更直接一点。

Keep reading 继续读下去

Discussion

0 comments

Join the thread

Comments are moderated before they become public.

No public comments yet.