在Jekyll(丑陋的URL)中使用slug.html而不是slug/index.html构建页面
我有一个关于我们的slug在Jekyll(丑陋的URL)中使用slug.html而不是slug/index.html构建页面,jekyll,Jekyll,我有一个关于我们的slug页面。默认情况下,Jekyll生成以下内容: /about-us /index.html 但是,我希望这样: /about-us.html 通过阅读文档,看起来我可以在配置中使用它 permalink: /:slug:output_ext 但是,这会产生与上述相同的输出 如何将Jekyll配置为将页面编写为自己的.html页面,如果您在页面的首页中有permalink:/about us/,或者您在配置文件中有permalink:pretty,J
页面。默认情况下,Jekyll生成以下内容:
/about-us
/index.html
但是,我希望这样:
/about-us.html
通过阅读文档,看起来我可以在配置中使用它
permalink: /:slug:output_ext
但是,这会产生与上述相同的输出
如何将Jekyll配置为将页面编写为自己的.html页面,如果您在页面的首页中有permalink:/about us/
,或者您在配置文件中有permalink:pretty
,Jekyll只会生成/about us/index.html
,而不是包含index.html的文件夹
确保上述两种情况都不会产生关于我们的/about.html
Ooh!现在将检查permalink
s并报告。