Add support for hide_list metadata option that allows directories to be displayed as pages instead of lists when they contain subfolders