Static HTML exporter for Kirby CMS (v2 only)
Full changelog will come with 3.0.0 stable.
Fixed:
url()
, js()
and css()
functions would not respect the staticbuilder.baseurl
and could output URLs like http://localhost/…
instead.Some improvements to page filtering (excluding pages from the static build):
I swear I committed that earlier before 2.0.0 but it disappeared. 😅
Important: the option names have changed in this release!
BREAKING:
c::set('staticbuilder', true);
.'plugin.staticbuilder.*'
to 'staticbuilder.*'
.filename
->extension
, pagefiles
->withfiles
.Kirby\Plugin\StaticBuilder
to Kirby\StaticBuilder
.New:
'staticbuilder.filter'
option), you can use this method to reuse the plugin’s default filter (which excludes empty directories and directories containing modules only): Kirby\StaticBuilder\Builder::defaultFilter($page)
.STATIC_BUILD
constant can be used to determine if we’re executing a controller or template from StaticBuilder. If StaticBuilder is building this page, this constant will be defined.