Eleventy Recipe Book is for quickly setting up a simple digital recipe book. Built on top of Eleventy Starter Boilerplate utilizing Eleventy.
Clone this project and use it to create your own Eleventy Recipe Book. You can view the demo here.
- A clean and minimal way to utilize your own/adapted recipes
- Wilto Makes Food
- OpenEats
A clean and minimal digital recipe book built on top of Eleventy Starter Boilerplate including:
- 11ty for site generation
- Lazy load images with lazysizes
- Image compression with Imagemin
- Minified HTML & CSS with HTMLMinifier and cssnano
- Module Bundling with Webpack
- Sitemap.xml
- 404 page
- Pagination
- Cache busting
- And more
- Node.js and npm
Run the following command in your local environment:
git clone --depth=1 https://github.com/footedesign/Eleventy-Recipe-Book.git my-project-name
cd my-project-name
npm install
Then, you can run locally in development mode with live reload:
npm run dev
Open http://localhost:8080 with your favorite browser to see your digital recipe book.
.
├── public # Static files
│ └── assets
│ └── images # Images not needed by Webpack
└── src
├── _data # Eleventy data folder
├── _includes
│ └── layouts # HTML layout files
├── assets # Assets folder that needs to be processed by Webpack
│ ├── images
│ │ └── recipes # Images used in your recipes (will be compressed by Webpack)
│ └── styles # Your site CSS files
└── recipes # Your recipes
You can easily configure your Eleventy Recipe Book by changing the following files:
public/assets/images/logo.png
: your site logopublic/apple-touch-icon.png
,public/favicon.ico
,public/favicon-16x16.png
andpublic/favicon-32x32.png
: your site favicon, you can generate one at https://favicon.io/favicon-generator/src/_data/site.json
: your site configurationsrc/_includes/layouts
: your site HTML layoutsrc/assets/styles/main.css
: your site CSS file using Tailwind CSS
You can see the results locally in production mode with:
npm run serve
The generated HTML and CSS files are minified. Unused CSS will also be removed from Tailwind CSS.
You can create an optimized production build with:
npm run build
Now, your recipe book is ready to be deployed. All generated files are located in the _site
folder, which you can deploy with any hosting service.
Clone this repository to your own GitHub account and deploy to Netlify:
- improve recipe instruction readability
- rethink Eleventy tagging for grouping recipe types
- localStorage shopping list
- utilize a logo?
- Extract Components from Tailwind CSS
- dark mode
- Cooking mode: recipe instructions in easily digestable chunks for use during cooking
- Netlify CMS
Contributions are welcome. Feel free to open an issue if you have question or found a bug.
Licensed under the MIT License, Copyright © 2020
See LICENSE for more information.