Reputation: 29987
I am starting with Jekyll and the docs mention the possibility to generate
http://example.com/about.html
) http://example.com/about/index.html
).A fresh installation of Jekyll with the default settings compiles an about.md
file to http://example.com/about/index.html
.
How to change the default behaviour to generate named HTML files?
Upvotes: 1
Views: 31
Reputation: 15976
Try permalinks. The default value for pages is /:path/:basename
, which leads to directories and index.html as you noticed. In the YAML Front Matter of about.md
, you can add:
permalink: /:path/about.html
Alternatively, you can modify your configuration in _config.yml
to change the behaviour for all pages:
permalink: /:path/:basename.html
Upvotes: 1