0
我想爲我的集合中的頁面定製永久鏈接。目錄如下:「路徑」永久鏈接財產在Jekyll集合
writing
|
--file.md
--file2.md
--some-dir/
|
--another.md
--something.md
我想要的網址是
- /writing/[file-title]/index.html
- /寫/ [文件2標題] /指數html的
- /writing/some-dir/[another-title]/index.html
- /writing/some-dir/[something-title]/index.html
我想我的收藏設置permalink
到
permalink: /:collection/:path/:title
但:path
包含完整路徑(包括文件名),而不是隻是路徑文件的目錄。
有什麼辦法可以做到這一點?