Skip to content

不同语言下各个分类项categories或各个系列项series的中英文名称如何定义? #1395

Answered by CXwudi
KinShin asked this question in Q&A
Discussion options

You must be logged in to vote

这是我DoIt最喜欢的点之一,所有的categories,series,还有tags,都是通过专门的文件夹建立来确保i18n工作,比如说documentation类别就是在content/categories中定义的,这样在显示文章的时候就可以调用相应的i18n string

顺便说一下作者profile也有i18n,在官方例子里没有但我自己的博客里有个例子

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KinShin
Comment options

Answer selected by KinShin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants