A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
npm install @11ty/eleventy
npm update @11ty/eleventy
Thank you to everyone that contributed code, documentation, answered questions, filed issues, said a kind word on Twitter ❤️
afterBuild
, beforeBuild
and Changed Files argument passed to beforeWatch
npm install @11ty/eleventy
npm update @11ty/eleventy
Thank you to everyone that contributed code, documentation, answered questions, filed issues, said a kind word on Twitter ❤️
Computed Data is a mechanism to transform the data at the end of the data cascade, before template rendering.
renderData
feature (not removed yet): #942 #941 #289 #816 #912--incremental
is ongoing. Follow along at https://github.com/orgs/11ty/projects/3
--watch
or --serve
only copies the changed file and does not trigger a full build. #977this.page
without needing to pass in as an argument (works with Nunjucks, Liquid, 11ty.js JavaScript, Handlebars) #741*.11ty.cjs
files (same as *.11ty.js
files)—thanks @justinfagnani! #826 #827
.cjs
in config file, template/directory/global data files—thanks @gloryofrobots! #837 #848log
filter for easy console.log from inside templates. #929
.npmignore
to streamline npm payload—thanks @pdehaan! #951 #962setWatchThrottleWaitTime
to set (in milliseconds). Useful if you use a Save All feature in your editor that saves multiple files at the same time. #559 Related to #977 Docs forthcoming: #1003beforeWatch
build event (runs before a re-build during watch or serve, not the initial build) #1042getFilter
, docs pending #284Cannot read property 'trim' of undefined
renderData
(details above in the Computed Data section)npm audit
: #1023 #1026 #1025markdown-it
from v8.4.2 to v10.0.0. Read more: https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md
Before we get going here I just want to take a brief moment to remember the very special @jameswillweb who passed away earlier this month. James was diagnosed with ALS in 2013 and was known for his widespread teaching contributions to the web community. Probably the least of which, but one that I will always remember, was his creation of the floating possum mascot for our little Eleventy project. This mascot (nay, mastcot, because it lives in the masthead ok fine but James would have liked that one) lives at the top of the Eleventy docs and links to the Twitter thread he started in 2018. Though we never met in real life, James was clearly a one-of-a-kind. We will miss you ❤️
Donations may be made in James’ name to The ALS Therapy Development Institute or to Quest Youth Ministries at St. John's United Methodist Church.
Permalink: https://www.11ty.dev/news/james-williamson/
npm install @11ty/eleventy
npm update @11ty/eleventy
npm install -g @11ty/eleventy
npm update -g @11ty/eleventy
Thank you to the code contributors that helped with this release: @gloryofrobots @edbrannin @madebymike @Ryuno-Ki @cschuller @micahmills @fredrikekelund @ahl @Munter @saenglert (and @zachleat, I guess)
eleventy-plugin-syntaxhighlight
, only opt-in to line wrapping markup if line highlighting features are used. Read more: https://github.com/11ty/eleventy-plugin-syntaxhighlight/releases/tag/v3.0.0
eleventyConfig.addDataExtension("yaml", contents => yaml.safeLoad(contents));
Thank you @gloryofrobots! #736 #798 #635 #630 #624 #265
setQuietMode
method to Configuration API so that we don’t have to type --quiet
all the time. #808addWatchTarget
method to Configuration API for programmatic watching of arbitrary files. Thanks @MadeByMike! #803 #641pathPrefix
being used in standard console output (if non-default). #807getFilteredByTags
to Collection API #708 #711 #830before
callback option to pagination to allow you to modify the data prior to it being paginated. Very powerful! #699
pagination.alias
and pagination.pages
options to pagination variable. These will help when creating navigation for your pagination. #280 #345 #334 #211
dependency-tree
npm package used to find JavaScript dependencies was slow. https://www.11ty.dev/docs/config/#watch-javascript-dependencies Wrote https://github.com/11ty/eleventy-dependency-tree to solve this. One major difference here is that dependencies now will be require’d
to resolve—so be aware of this if your node files aren’t idempotent! This pays off in a huge performance boost when using --watch
or --serve
. #70011ty.js
, Liquid, and Nunjucks templates. #672 #429
hyperlink
checker to the 11ty documentation for link rot checking! Source tweet
Cannot read property 'trim' of undefined
error on unhandledRejection events. #689require
node cache busting on Windows (some JavaScript files may not have picked up changes when watching) #341 #596 #683 Thanks @cschuller!!
) in .gitignore or .eleventyignore files. The bug caused Eleventy to not process any files. Support was not added for negated entries—they are ignored for now. Thanks @micahmills! #677 #709setDataDeepMerge
. Thanks @ahl! #676 #735EleventyErrorUtil
—thank you @edbrannin! #753Before we get going here I just want to take a brief moment to remember the very special @jameswillweb who passed away earlier this month. James was diagnosed with ALS in 2013 and was known for his widespread teaching contributions to the web community. Probably the least of which, but one that I will always remember, was his creation of the floating possum mascot for our little Eleventy project. This mascot (nay, mastcot, because it lives in the masthead ok fine but James would have liked that one) lives at the top of the Eleventy docs and links to the Twitter thread he started in 2018. Though we never met in real life, James was clearly a one-of-a-kind. We will miss you ❤️
Donations may be made in James’ name to The ALS Therapy Development Institute or to Quest Youth Ministries at St. John's United Methodist Church.
Permalink: https://www.11ty.dev/news/james-williamson/
Install this 🚧🚧 prerelease 🚧🚧 to help test the upcoming Eleventy 0.10.0 release:
npm install @11ty/eleventy@beta --save-dev
@gloryofrobots @edbrannin @madebymike @Ryuno-Ki @cschuller @micahmills @fredrikekelund @ahl @Munter @saenglert (and @zachleat, I guess)
eleventy-plugin-syntaxhighlight
, only opt-in to line wrapping markup if line highlighting features are used. Read more: https://github.com/11ty/eleventy-plugin-syntaxhighlight/releases/tag/v3.0.0
eleventyConfig.addDataExtension("yaml", contents => yaml.safeLoad(contents));
Thank you @gloryofrobots! #736 #798 #635 #630 #624 #265
setQuietMode
method to Configuration API so that we don’t have to type --quiet
all the time. #808addWatchTarget
method to Configuration API for programmatic watching of arbitrary files. Thanks @MadeByMike! #803 #641pathPrefix
being used in standard console output (if non-default). #807getFilteredByTags
to Collection API #708 #711 #830before
callback option to pagination to allow you to modify the data prior to it being paginated. Very powerful! #699
pagination.alias
and pagination.pages
options to pagination variable. These will help when creating navigation for your pagination. #280 #345 #334 #211
dependency-tree
npm package used to find JavaScript dependencies was slow. https://www.11ty.dev/docs/config/#watch-javascript-dependencies Wrote https://github.com/11ty/eleventy-dependency-tree to solve this. One major difference here is that dependencies now will be require’d
to resolve—so be aware of this if your node files aren’t idempotent! This pays off in a huge performance boost when using --watch
or --serve
. #70011ty.js
, Liquid, and Nunjucks templates. #672 #429
hyperlink
checker to the 11ty documentation for link rot checking! Source tweet
Cannot read property 'trim' of undefined
error on unhandledRejection events. #689require
node cache busting on Windows (some JavaScript files may not have picked up changes when watching) #341 #596 #683 Thanks @cschuller!!
) in .gitignore or .eleventyignore files. The bug caused Eleventy to not process any files. Support was not added for negated entries—they are ignored for now. Thanks @micahmills! #677 #709setDataDeepMerge
. Thanks @ahl! #676 #735EleventyErrorUtil
—thank you @edbrannin! #753Before we get going here I just want to take a brief moment to remember the very special @jameswillweb who passed away earlier this month. James was diagnosed with ALS in 2013 and was known for his widespread teaching contributions to the web community. Probably the least of which, but one that I will always remember, was his creation of the floating possum mascot for our little Eleventy project. This mascot (nay, mastcot, because it lives in the masthead ok fine but James would have liked that one) lives at the top of the Eleventy docs and links to the Twitter thread he started in 2018. Though we never met in real life, James was clearly a one-of-a-kind. We will miss you ❤️
Donations may be made in James’ name to The ALS Therapy Development Institute or to Quest Youth Ministries at St. John's United Methodist Church.
Permalink: https://www.11ty.dev/news/james-williamson/
Install this 🚧🚧 prerelease 🚧🚧 to help test the upcoming Eleventy 0.10.0 release:
npm install @11ty/eleventy@beta --save-dev
@gloryofrobots @edbrannin @madebymike @Ryuno-Ki @cschuller @micahmills @fredrikekelund @ahl @Munter (and @zachleat, I guess)
eleventyConfig.addDataExtension("yaml", contents => yaml.safeLoad(contents));
Thank you @gloryofrobots! #736 #798 #635 #630 #624 #265
setQuietMode
method to Configuration API so that we don’t have to type --quiet
all the time. #808addWatchTarget
method to Configuration API for programmatic watching of arbitrary files. Thanks @MadeByMike! #803 #641pathPrefix
being used in standard console output (if non-default). #807before
callback option to pagination to allow you to modify the data prior to it being paginated. Very powerful! #699
pagination.alias
and pagination.pages
options to pagination variable. These will help when creating navigation for your pagination. #280 #345 #334 #211
dependency-tree
npm package used to find JavaScript dependencies was slow. https://www.11ty.dev/docs/config/#watch-javascript-dependencies Wrote https://github.com/11ty/eleventy-dependency-tree to solve this. One major difference here is that dependencies now will be require’d
to resolve—so be aware of this if your node files aren’t idempotent! This pays off in a huge performance boost when using --watch
or --serve
. #70011ty.js
, Liquid, and Nunjucks templates. #672 #429
hyperlink
checker to the 11ty documentation for link rot checking! Source tweet
Cannot read property 'trim' of undefined
error on unhandledRejection events. #689require
node cache busting on Windows (some JavaScript files may not have picked up changes when watching) #341 #596 #683 Thanks @cschuller!!
) in .gitignore or .eleventyignore files. The bug caused Eleventy to not process any files. Support was not added for negated entries—they are ignored for now. Thanks @micahmills! #677 #709setDataDeepMerge
. Thanks @ahl! #676 #735EleventyErrorUtil
—thank you @edbrannin! #753Support Eleventy:
npm install @11ty/eleventy
npm update @11ty/eleventy
npm install -g @11ty/eleventy
npm update -g @11ty/eleventy
@danielstaleiny @veleek @aarongustafson @edwardhorsford @Ryuno-Ki @paulshryock @JakeArchibald @MadeByMike @Munter (and @zachleat I guess)
page.filePathStem
variable for permalinks #244*.11ty.js
) #622 #627 Thanks @JakeArchibald!
exports = { data: {}, render: function() {}
exports = class { data = {}; render() {} }
exports.data = {}; exports.render = function() {}
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!Unknown path
) #547page.fileSlug
with JavaScript Templates (was returning fileName.11ty
, should be fileName
) #588page.*
variables) #600eleventyExcludeFromCollections
templates incorrectly throwing TemplateContentPrematureUseError
errors. #522browser-sync
to remove audit report #428TemplateContentPrematureUseError
error when using pagination #551, #634.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
npm audit
found 0 vulnerabilities in 7917 scanned packagesInstall this 🚧🚧 prerelease 🚧🚧 to help test the upcoming Eleventy 0.9.0 release:
npm install @11ty/eleventy@beta --save-dev
@danielstaleiny @veleek @aarongustafson @edwardhorsford @Ryuno-Ki @paulshryock @JakeArchibald @MadeByMike @Munter (and @zachleat I guess)
page.filePathStem
variable for permalinks #244*.11ty.js
) #622 #627 Thanks @JakeArchibald!
exports = { data: {}, render: function() {}
exports = class { data = {}; render() {} }
exports.data = {}; exports.render = function() {}
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!Unknown path
) #547page.fileSlug
with JavaScript Templates (was returning fileName.11ty
, should be fileName
) #588page.*
variables) #600eleventyExcludeFromCollections
templates incorrectly throwing TemplateContentPrematureUseError
errors. #522browser-sync
to remove audit report #428TemplateContentPrematureUseError
error when using pagination #551, #634.fast-glob
from v2 to v3: Release notes
Install this 🚧🚧 prerelease 🚧🚧 to help test the upcoming Eleventy 0.9.0 release:
npm install @11ty/eleventy@beta --save-dev
@danielstaleiny @veleek @aarongustafson @edwardhorsford @Ryuno-Ki @paulshryock @JakeArchibald @MadeByMike @Munter (and @zachleat I guess)
page.filePathStem
variable for permalinks #244*.11ty.js
) #622 #627 Thanks @JakeArchibald!
exports = { data: {}, render: function() {}
exports = class { data = {}; render() {} }
exports.data = {}; exports.render = function() {}
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!Unknown path
) #547page.fileSlug
with JavaScript Templates (was returning fileName.11ty
, should be fileName
) #588page.*
variables) #600eleventyExcludeFromCollections
templates incorrectly throwing TemplateContentPrematureUseError
errors. #522browser-sync
to remove audit report #428fast-glob
from v2 to v3: Release notes
Eleventy is a Simpler Static Site Generator.
Support Eleventy:
npm install @11ty/eleventy
npm update @11ty/eleventy
npm install -g @11ty/eleventy
npm update -g @11ty/eleventy
markdownTemplateEngine
is false
#466Tried to use templateContent too early
error would be thrown #479url
filter on Windows #485 #486 Thank you @AndrewAsquith!None
None
Eleventy is a Simpler Static Site Generator.
Support Eleventy:
npm install @11ty/eleventy
npm update @11ty/eleventy
npm install -g @11ty/eleventy
npm update -g @11ty/eleventy
None
None