probberechts / hexo-theme-cactus

:cactus: A responsive, clean and simple theme for Hexo.

Home Page:https://probberechts.github.io/hexo-theme-cactus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page title exception of archives page.

opened this issue · comments

After I set the language to zh CN, the page titles of other pages are normally displayed as zh CN, but the header text of the built-in archives page is abnormal and displayed as Arabic. منشورات

That's odd. Did you try running hexo clean already?

That's odd. Did you try running hexo clean already?

Yes, I tried many methods, including hexo clean, and the results were the same. The others were displayed normally, but the tag page title of the archive page was displayed abnormally

Just to be clear, you are refering to the <title> tag, right?

Does it change to English if you set the language in _config.yml to

language:
- zh-CN
- en

澄清一下,你指的是<title>标签,对吗?

_config.yml如果您将语言设置为,它会更改为英语吗

language:
- zh-CN
- en

If it is changed to en, the title is writing, and if it is changed to zh CN, the title is منشورات

This is the relevant code that sets the title of the archive page:

title = this.__("nav.articles");

The nav.articles variable is replaced with

articles: 归档

I do not see what would be wrong here. Hence, I am afraid I cannot solve it. If you manage to debug it, let me know.

This is the relevant code that sets the title of the archive page:

title = this.__("nav.articles");

The nav.articles variable is replaced with

articles: 归档

I do not see what would be wrong here. Hence, I am afraid I cannot solve it. If you manage to debug it, let me know.

the problem has been solved, thank you for your patient reply.

What was the solution?

解决方案是什么?

/languages/zh-CN.yml as a result of articles: 归档 is modified to article: 归档 by me