4

Melatsmith のプラグインのさまざまな組み合わせを試しましたが、まだサポートが必要です。このような構造を変換する方法を提案していただけますか:

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にすべてのロケールに異なるバージョンのファイルを提供しています。

4

0 に答える 0