2

I'm building my website on Jekyll in Czech and English. After launch it'll run on different domains but with same structure. But I need to have different permalinks for pages according to language.

E.g. page "About us" should be //something/about-us/ in English and //something/o-nas/ in Czech.

As far as my research goes I've found out that

  • I can't use any other variable for permalink than specified here https://jekyllrb.com/docs/permalinks/
  • I can specify permalink in frontmatter (e.g. permalink: about-us) but I can't make it language specific because it's not possible to use if statements in frontmatter or use any other variable (idea was something like permalink: {{site.urls.about-us.[site.lang]}})...
  • 言語ごとに、異なるエクスポートフォルダーを持つ異なる構成ファイルがあります。多分私はそれを何とか使うことができますか?

誰かが私を正しい方向に押すことができますか? 多分私は何かが足りない。ありがとう!

4

0 に答える 0