2.4.0 release
Read https://www.soupault.app/blog/soupault-2.4.0-release for details.
New features
- The
titlewidget will not touch the<title>element if it's not empty, if you setkeep = true force_indexing_path_regexoption in the[index]table allows to re-classify some index page as normal pages (i.e. metadata sources, not index injection targets)leaf_fileoption in the[index]table allows to mark a directory as a "hand-made clean URL", e.g. withleaf_file = ".leaf"any directory that contains a file named.leafwill no longer be treated as a site section, but itsindex.htmlwill be treated as a normal page, and all files within it will be treated as assets.
New plugin functions
widget_configalias forconfig(since now there's the globalsoupault_config, a more specific alias may be a good idea)build_dirandsite_dirvariables in the plugin environment (PR by @hristoast)Table.get_key_default(table, key, default_value)- Type checking functions in the new
Valuemodule:is_int,is_float, ``is_string,is_table`, `is_list` (table with all integer keys), `is_nil`. Sys.mkdir,Sys.get_file_modification_date
Bug fixes
include_subsectionoption in the[index]table works correctly now (used to cause a spurious option validation error)- soupault no longer outputs duplicate newlines on Windows (#19, reported by @wilt00).
- The
HTML.get_heading_levelfunction now works with nodes returned byHTML.select(rather than just values created withHTML.create_element)
Notes
- The new website address is www.soupault.app. A redirect from the old Neocities website will be maintained indefinitely, but you should update the URLs nonetheless.