eleventy ๐โก๏ธ v0.9.0-beta.2 Release Notes
Release Date: 2019-08-17 // over 4 years ago-
Eleventy is a Simpler Static Site Generator.
๐ Install this ๐ง๐ง prerelease ๐ง๐ง to help test the upcoming Eleventy 0.9.0 release:
npm install @11ty/eleventy@beta --save-dev
๐ Thank you to the 10 contributors that helped with this release!
@danielstaleiny @veleek @aarongustafson @edwardhorsford @Ryuno-Ki @paulshryock @jakearchibald @MadeByMike @Munter (and @zachleat I guess)
๐ Features
- ๐ฑ Shows Eleventy version in standard console output (should help me out a lot when debugging issues ๐) #657
- ๐ Relative Includes added in Nunjucks, Liquid (already supported in EJS and Pug) #190
- โ Adds support for Passthrough Copy output directory remapping #452 Thank you @MadeByMike!
- Throws an error if two input templates attempt to write to the same output file (overlapping permalinks) #322 #562
- ๐ Allows custom options (and formats) in front matter #410
- e.g. use TOML in your front matter #113
- e.g. use Front Matter excerpts
- โ Adds
page.filePathStem
variable for permalinks #244 - JavaScript Templates (
*.11ty.js
) #622 #627 Thanks @jakearchibald!- Throws an error when a JavaScript template returns invalid data format #626
- When using classes, we now re-use the same instance for data and rendering
- Add support for JavaScript objects a la
exports = { data: {}, render: function() {}
- Add support for JavaScript Class Fields (Node 12 feature) a la:
exports = class { data = {}; render() {} }
- Add support for multiple exports a la
exports.data = {}; exports.render = function() {}
- Fails gracefully when class/object is missing a render method.
- ๐ Config file functions do not yet support returning promises, now we throw an error when this happens. #612 Thanks @Munter!
- Current behavior auto-ignores
node_modules
directory if.gitignore
does not exist. Eleventy will now also auto-ignore if.gitignore
does exist but is empty. #389 Thank you @danielstaleiny! - Eleventy searches for file extensions are now cross-platform case insensitive. #509 #517 Thanks @veleek!
๐ Bug fixes
- ๐ Shows path to template on template rendering errors (No more
Unknown path
) #547 - ๐ Fixes
page.fileSlug
with JavaScript Templates (was returningfileName.11ty
, should befileName
) #588 - ๐ Fixes issue with Liquid shortcode argument parsing (failed on
page.*
variables) #600 - ๐ Fixes issue with
eleventyExcludeFromCollections
templates incorrectly throwingTemplateContentPrematureUseError
errors. #522 - โฌ๏ธ Upgrades
browser-sync
to remove audit report #428 - ๐ Fixes issue with empty tags in front matter #557 Thanks @edwardhorsford!
- ๐ Fix for
TemplateContentPrematureUseError
error when using pagination #551, #634.
๐ Docs and other
- โ Adds new layouts directory to debug output #574 Thanks @paulshryock!
- โ Adds links to plugins from README #570 Thanks @Ryuno-Ki!
๐ Dependency Major Release Bumps
- ๐
fast-glob
from v2 to v3: Release notes
Administration