The Jekyll team is happy to announce the release of v4.2.1 which fixes a couple of regressions introduced in v4.2.0 and another bug inherited from Jek

Jekyll 4.2.1 Released | Jekyll • Simple, blog-aware, static sites

submited by
Style Pass
2021-09-28 06:30:08

The Jekyll team is happy to announce the release of v4.2.1 which fixes a couple of regressions introduced in v4.2.0 and another bug inherited from Jekyll 3.

In v4.2.0, we decided to stop overriding {{ site.url }} with the localhost address when running the command jekyll serve with the default development mode. While the intent behind the change was to avoid forcing users to generate a production build separately by invoking jekyll build, it however had an unforeseen consequence — absolute URLs for assets now pointed to resources that were at times not yet been deployed to the configured site.url. That broke the users’ local development workflow.

v4.2.0 also added a series of optimizations surrounding the generation of Liquid representation for a site’s standalone pages and layouts. However, that prevented {{ page.content }} and other mutable attributes from reflecting the latest state of the requested attribute, thereby breaking the render of all resources that were dependent on such mutable attributes.

The last fix included in this release addresses the issue where incremental regeneration ignored changes to documents in collections when the site is configured to use a custom collections_dir for all collections.

Leave a Comment