Skip to content

2.4.0 release

Choose a tag to compare

@dmbaturin dmbaturin released this 17 Jan 12:15

Read https://www.soupault.app/blog/soupault-2.4.0-release for details.

New features

  • The title widget will not touch the <title> element if it's not empty, if you set keep = true
  • force_indexing_path_regex option in the [index] table allows to re-classify some index page as normal pages (i.e. metadata sources, not index injection targets)
  • leaf_file option in the [index] table allows to mark a directory as a "hand-made clean URL", e.g. with leaf_file = ".leaf" any directory that contains a file named .leaf will no longer be treated as a site section, but its index.html will be treated as a normal page, and all files within it will be treated as assets.

New plugin functions

  • widget_config alias for config (since now there's the global soupault_config, a more specific alias may be a good idea)
  • build_dir and site_dir variables in the plugin environment (PR by @hristoast)
  • Table.get_key_default(table, key, default_value)
  • Type checking functions in the new Value module: 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_subsection option 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_level function now works with nodes returned by HTML.select (rather than just values created with HTML.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.