4
我已经尝试过不同的Melatsmith插件组合,但仍然需要帮助。你可以建议如何像这样的变换结构:Metalsmith的多语言网站
src/
pages/
about/
index_de.md
index_en.md
contact/
index_de.md
index_en.md
posts/
my-first-post/
index_de.md
index_en.md
my-second-post/
index_de.md
my-third-post/
index_en.md
分为:
build/
de/
pages/
about/
index.html
contact/
index.html
posts/
my-first-post/
index.html
my-second-post/
index.html
pages/ # english by default
about/
index.html
contact/
index.html
posts/ # english by default
my-first-post/
index.html
my-third-post/
index.html
不幸的是,在所有关于Metalsmith多语言的文章,他们在src
已经locale文件夹。在我的版本中,我不想拥有它,而是为每个语言环境提供不同版本的.md
文件。