🌱Eleventy (11ty) a simpler static site generator
Published by Scott Kingery on
Official Site
Eleventy, a simpler static site generator
Getting Started
- Getting Started — Eleventy
- How to build static website with 11ty
- A Complete Guide to Building a Blog with Eleventy
- The 11ty Bundle 'Learn how others are making the most of 11ty, an exceptionally simple, flexible, and performant, open-source static site generator.'
- Build An Eleventy (11ty) Site From Scratch | egghead.io
- David East - 11ty tips I wish I knew from the start
- YouTube - 6 Minutes to Build a Blog from Scratch with Eleventy
- YouTube - A nice series that was very helpful for me to get me started with 11ty. Eleventy Crash Course
- YouTube - Build an 11ty Site in 3 Minutes
How Tos
- Backlinks
- Collections
- Let's Learn Eleventy (11ty) - Collections
- Change default global sort order for collections (ascending or descending) · Issue #367 · 11ty/eleventy · GitHub reverse
- Is it possible to sort a collection by front-matter values? · Issue #898 · 11ty/eleventy · GitHub
- Eleventy - Convert a RSS Feed to a collection
- Create an 11ty collection from any RSS feed - Mike Street - Lead Developer and CTO
- Code - Sort an 11ty collection by the post title
- Using Goodreads Data in Eleventy - Update
- Dates
- Deployment
- Filters
- Global Data Files
- HTML
- Images Plugin
- Import
- Utility to import content from multiple services (and a CLI, too) 'A small utility (and CLI) to import content files from various content sources.'
- Rob's garden
- GitHub - 11ty/eleventy-import: Utility to import content from multiple services (and a CLI, too) 'A small utility (and CLI) to import content files from various content sources.
- Markdown
- Nunjucks
- Obsidian
- Pagination
- Photography
- Search
- Shortcodes
- Eleventy Crash Course - Creating Functional Components with Shortcodes - YouTube https://www.youtube.com/watch?v=ty0_xOxeRCU&list=PLtLXFsdHI8JTwScHvB924dY3PNwNJjjuW&index=3
- 11ty Date Shortcodes and Filters | 11ty Rocks! postDate
- Templates
- Tags
- Webmentions
- WikiLinks
Others
- Follow 11ty on Mastodon @eleventy@fosstodon.org
Notes on Getting Things Set up
node Node.js — Download
Run the following commands. This installs 11ty, the luxon date formatter and the rss plugin
npm init -y
npm install @11ty/eleventy
npm install luxon
npm install @11ty/eleventy-plugin-rss
Create these folders
md src
md src\assets
md src\css
md src\_data
md src\_includes
md src\_includes\layouts
md _site
Create an .eleventy.js file and add the following
module.exports = function(eleventyConfig) {
// passhtrough folders
eleventyConfig.addPassthroughCopy("src/assets/");
eleventyConfig.addPassthroughCopy("src/css/");
eleventyConfig.addPassthroughCopy("src/.well-known/");
// passhtrough files
eleventyConfig.addPassthroughCopy("src/*.txt");
eleventyConfig.addPassthroughCopy("src/*.xml");
// folder to watch during builds
eleventyConfig.addWatchTarget("src/css");
return {
dir: {
input: "src",
includes: "_includes",
output: "_site",
},
templateFormats: ["md", "njk", "html"],
markdownTemplateEngine: "njk",
dataTemplateEngine: "njk",
};
};
Other Tools that Help
Quick Start | Hygen - Hygen is a tool that lets you use templates to build posts
