This project is a MailChimp-based email template built using Eleventy (11ty) and the Nunjucks templating language. Eleventy is used as a static site generator to compile HTML, making it easy to build and update this template.
Ensure you have Node.js installed.
- Clone this repository:
git clone https://github.com/bonilista/bonilista-template.git
- Install dependencies:
npm install
To develop, run the following command to start the Eleventy server:
npm start
Eleventy will start a local server and automatically rebuild when files are changed. You can view your template at http://localhost:8080
.
The compiled HTML template can be found at src/_site/
. This folder can be zipped and uploaded as a MailChimp template using MailChimp's editor dashboard.
Inline CSS is encouraged and common in this email template, as it works better between different email clients. Common CSS is placed in the src/_includes/styles/css.njk
file and it gets included in the head
of the email inside a <style>
tag. MailChimp's editor will review this CSS later in the creation process and inline as much CSS rules as possible.
Feel free to open issues or submit pull requests. We welcome contributions to improve template quality and functionality.
Distributed under the AGPLv3 License. See LICENSE.md
for more information.