Skip to content

V3.3.0 - The possibility to include default files in FilesFromFolder

Compare
Choose a tag to compare
@jmalarcon jmalarcon released this 22 Apr 12:39
· 13 commits to master since this release
  • Added support to retrieve default files with the FilesFromFolder and PaginatorFor Front-Matter sources.
    • Now you can include index and default pages in the results by using a 3rd parameter (true) in the FilesFromFolder and PaginatorFor Front-Matter sources.
    • For example: files: FilesFromFolder ~/ false true will get all the .md and .mdh files from the site, so that you can easily create a sitemap.xml with all the pages in the site, for example.
    • Notice that the former third parameter to sort the files by date ascendingly, has been removed. This is a small breaking change and if you need to sort the files in a different way just use the sort and reverse filters. Take into account that the sort filter allows to sort the files by any of their properties (name, url, url_no_ext...)
  • Automatically remove the name of the default files (index or default) from the URL properties of files. That way, for example /blog/index will automatically be: /blog/. Much nicer.
  • Bumped MIISFilesEnumeratorFMS.dll to 1.1.0 and MIIShandler.dll to 3.3.0