Allow to use filename in permalinks

When migrating to hugo from a previous blogging platform, I had to make permalinks to be built using filenames. May be useful for others, too.