The main feature in this release is the addition of the new routePrefix setting, which, when set in your project's conf.yaml will tell Kobweb that your site lives under a subfolder in the domain.
So if you owned the domain example.com and set the routePrefix of a/b/c would mean that the root of your site would map to https://example.com/a/b/c/
Frontend
- You can now set
routePrefixin yourconf.yaml - Update Silk
Linkwidget to beroutePrefixaware - Add new
Imagewidget to Silk (which is essentially anImgthat isroutePrefixaware) - Add new
Dividerwidget to Silk (which is essentially anHrtag but Silk-theme aware plus some better defaults) - Fixed bugs with relative paths and mailto, etc. URLs not working
- Screen now resets to the top when you change the current path
- Allow users to customize the link opening strategy so, e.g., they can always make sure that links open in new pages instead of the current one
- Also, control keys are now respected, e.g. "Ctrl + left click" opens a link in a new browser
- Fixed a bug with overwriting Silk theme styles being rejected as a duplicate incorrectly
Markdown
- Markdown now uses the new Silk
ImageandDividerclasses if available - Markdown logic around computing header IDs is improved
- Duplicate header IDs are now made unique by appending an incrementally counting number
- The IDs are stored in a per page data map so that they can be checked against later instead of recalculated
Misc
- Gradle updated to version 7.4