eleventy πŸ•šβš‘οΈ v0.9.0 Release Notes

Release Date: 2019-08-27 // over 4 years ago
  • Eleventy is a Simpler Static Site Generator.

    πŸ“š v0.9.0 Documentation

    πŸ‘Œ Support Eleventy:

    • 🍱 ⭐️ Starring us on GitHub! This will increase our project’s visibility on staticgen.com, a big giant list of static site generators.
    • 🐦 Follow us on Twitter @​eleven_ty!
    • 🍱 🎁 Join 32 other lovely people and become an Eleventy Supporter!

    Install

    • Install to your Local project (preferred): npm install @11ty/eleventy
    • ⚑️ Already installed in your local project? Upgrade your version: npm update @11ty/eleventy
    • Want to install globally? npm install -g @11ty/eleventy
    • ⚑️ Already installed globally? Upgrade your Global version: npm update -g @11ty/eleventy
    • πŸ“„ Read more about local versus global installation

    πŸš€ 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)

    πŸ”„ Changelog

    πŸ”‹ 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 returning fileName.11ty, should be fileName) #588
    • πŸ›  Fixes issue with Liquid shortcode argument parsing (failed on page.* variables) #600
    • πŸ›  Fixes issue with eleventyExcludeFromCollections templates incorrectly throwing TemplateContentPrematureUseError 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

    πŸš€ Dependency Major Release Bumps

    Note that dev-dependencies are not included here.

    • πŸš€ fast-glob from v2 to v3: Release notes

    • πŸš€ chokidar from v2 to v3: requires Node 8+ Release notes

    • dependency-tree from v6 to v7: upgraded precinct from 5.x to 6.x for some typescript things Β―_(ツ)_/Β― (No release notes for this project: issue filed)

    • πŸš€ fs-extra from v7 to v8: Release notes

    • πŸš€ multimatch from v3 to v4: requires Node 8+ Release notes

    Administration