In fact, the server needs to be configured, not jekyll. By default, jekyll is going to create files with the .html extensions. It may be so, but it is unlikely that you really want to go that route. Instead, you need to tell the web server that you want these files to serve when calling the URL with the base file name (and without the extension).
If your site is served through the Apache web server, you can enable the "MultiViews" option. In most cases, you can create a .htaccess file in the root of your site with the following line:
Options +MultiViews
If this option is enabled, when Apache receives a request for:
http:
It will serve the file:
/foo.html
Note that the Apache server must be configured so that the option is installed in the htaccess file. If not, you will need to do this in the Apache configuration file itself. If your site is hosted on a different web server, you need to find an equivalent setting.
Alan W. Smith
source share