Creating Custom 11ty Plugins
In this book, we’ve created four separate projects that have put 11ty through its paces. While most of it has been a fun exercise in coding, doing the same tasks over and over again in your regular work is less efficient than is optimal. In this chapter, we’ll take much of the knowledge earned in the course of this book and put it all together into a series of 11ty plugins that you can use in any of your projects and publish for others to use, as well.
We’ve used plugins multiple times throughout the book but haven’t dived into what it takes to make one. The process is not too different from the work we’ve done in creating sites with 11ty. In this chapter, we’ll discuss what a plugin is, and convert reusable features from our various projects into individual plugins. To do that, we’ll cover plugin basic setup, plugin testing, and creating plugin configuration options in the following sections:
-
...