Smart Incremental Rebuilds With eleventyImport
🍿 2 min. read • Posted on: Mar 18, 2023Ensure templates that display content from collections, like a blog index, rebuild when associated collection content changes.
Read Post View Post ArchiveA collection of Eleventy (11ty) starters, projects, plugins, and resources created by Stephanie Eckles (@5t3ph)
Ensure templates that display content from collections, like a blog index, rebuild when associated collection content changes.
Read Post View Post ArchiveUseful snippets and ideas for managing and creating 11ty projects.
Includes tips on VSCode settings, site metadata, permalinks, and more!
View All TipsA collection of filters, shortcodes, and other tips for extending 11ty, such as working with dates and extending built-in filters.
View All SamplesStarters, plugins, and externally hosted articles and tutorials
Build a site in 20 mins! Start from a blank project and build up to an 11ty site that includes Sass, a blog collection, and is prepared to source content from a headless CMS.
Watch the CollectionBased on my experience building StyleStage.dev, this tutorial will cover how to create a full-featured 11ty site including:
11ty Rocks is now on YouTube! Subscribe today so you don't miss a video. Content will be in support of topics explored here on 11ty.Rocks.
Subscribe to 11ty RocksFeaturing absolutely nothing beyond a base HTML5 template and the essential setup to watch and compile your Sass alongside 11ty.
Includes minifiying and autoprefixing of styles postbuild.
Get the StarterQuickly launch an 11ty-generated static site. Includes a minimal Sass framework, and generated sitemap, RSS feed, and social share preview images.
Test Drive the JumpstartAn Eleventy theme for offering premium content to members by using Edge-powered authentication. Requires Supabase and Netlify accounts.
Review this article on the high-level membership theme concepts to learn how members-only content works.
Get this themeAn extremely minimal Eleventy starter to kickstart a simple multi-page site that provides a nearly opinionless foundation to continue building on.
You can preview this starter or jump right to the repo.
Use Smol StarterProvide permalinks to your favorite RSS feeds to populate a personalized RSS reader Jamstack application using Eleventy.
Bonus: This application was built on Twitch livestream, and recordings will be available on the 11ty Rocks YouTube channel. The course covers advanced 11ty templating.
Get the RSS StarterScenes are optimal at 1280x720, and are included for:
All scenes include a lower third for stream details, which also features embedded chat.
Get the Scenes TemplateKickstart your 11ty plugin project with this template that includes a barebones 11ty build to test your functionality, and docs on how to test your plugin locally.
Also includes a boilerplate for your plugin README, and demonstrates setting up plugin config defaults.
Build Your PluginCompile Sass in Eleventy (11ty) and process it with LightningCSS to minify, prefix, and add future CSS support.
Also respects either your package.json browserslist or a .browserslistrc, otherwise the default targets are > 0.2% and not dead.
Requires Eleventy v2 beta or stable.
Add Sass to 11tyEnforce a typed frontmatter schema for templates within an Eleventy collection.
Define a unique schema per collection, then receive output during development and builds to note incorrectly typed, missing, invalid, or misplaced custom data keys.
Docs for Collection SchemasThis plugin provides an Eleventy shortcode to add "Open in CodePen" functionality for code demos.
The functionality pairs well with the result of this tutorial on creating live static code demos.
Docs for Open in CodePenThis plugin provides a filter that displays an estimated read time for Eleventy content, optionally with an emoji visual indicator.
The plugin offers config options to change or remove the emoji, update the word-per-minute, and alter the label. A simple string is returned, so the text formatting is up to you.
The default appearance displays one 🍿 per rounded 5 minutes of estimated reading time, ex: 🍿 7 min. read
Based on my tutorial, this package creates dynamic images sized for social media tags (particularly Twitter and Facebook) based on your available pages. Use one of the predefined color themes, or define your own style, template, or both to customize the layout (like the ones in use on 11ty Rocks).
Configure the CLI script to run after your Eleventy build, and by default images will be created in _site/previews/
as png images. Use the CLI options to define a custom outputDir
and/or a custom imageDir
.
This plugin adds an Eleventy Nunjucks shortcode to provide the functionality of generating an image's object-position value in order to keep the focal point in view when setting CSS aspect-ratio
and object-fit: cover
.
Test drive the results by using the utility app.
Docs for Object-Fit Focal PointI joined Colby Fayock on Twitch in a slightly chaotic hour where I began building SmolCSS.dev with Eleventy.
Check out the recording and learn more about setting up Eleventy content for use in a single-page site, including advanced template and layout features using Nunjucks.
Watch RecordingEleventy makes it possible to mix templating languages. More importantly to this generator is that we can customize the output file type and composite a file from includes.
This generator works with the inherent features of 11ty. Web components are generated within a Nunjucks (.njk
) template that outputs the final .js
file.
Generate simple, responsive email templates, with inlined CSS on build.
Use the Sass theme setup to re-brand the default template, and use the frontmatter keys for flexibilty in the layout. Check out the README for additional tips on creating emails.
Create Your EmailsCSS Houdini worklets require a server to run. While there are many ways to create an environment for developing and testing your worklet, as a static site generator, Eleventy provides a slim way to get setup and testing quickly so you can focus on creating your worklet!
You can preview the included worklet example on this CodePen.
Details and Template