Unfortunately, since this behavior isn't encouraged, there isn't a simple configuration option to disable the directory output.
However, since permalink
is part of the data cascade, you can set a global default, and in combination with the filePathStem
computed data, you can set the output to be .html
files.
To set a permalink
using a global data file, add a permalink.js
file to your global _data
directory.
// _data/permalink.js
module.exports = '/{{ page.filePathStem }}.html'
There is also a config global data option coming soon to v1.0.0. I am not sure if it will handle the {{ page.filePathStep }}
preprocessing, but if it does, that could be an option too, especially since it will keep config-related things inside the config file.