Introduction
Eleventy Simple is a lightweight blog starter template that combines the power of 11ty (Eleventy) static site generator with the simplicity of Simple.css. This project provides an excellent foundation for creating fast, minimalist blogs or websites. It's based on the eleventy-base-blog and optimized for ease of use and quick setup.
Main Features
- Built with 11ty (Eleventy) static site generator
- Utilizes Simple.css for clean, minimalist styling
- Responsive design out of the box
- Blog post support with tags and archives
- RSS feed generation
- Sitemap generation
- Easily customizable layouts and templates
- Markdown support for content creation
- Automatic navigation generation
- Optimized for fast loading and performance
Installation Steps
Clone the repository:
git clone https://github.com/lkhrs/eleventy-simple.git my-blog-name
Navigate to the project directory:
cd my-blog-name
Install dependencies:
npm install
Edit the
_data/metadata.json
file to update your site's information.Run Eleventy to build your site:
npx @11ty/eleventy
For local development with live reloading, use:
npx @11ty/eleventy --serve
Usage Instructions
Content Creation:
- Add new blog posts in the
posts/
directory using Markdown format - Create content pages like "About" by following the example in
about/index.md
- Add new blog posts in the
Customization:
- Modify layouts in the
_includes/layouts/
directory - Adjust styles by editing files in the
css/
directory - Configure site settings in
_data/metadata.json
- Modify layouts in the
Navigation:
- Use the
eleventyNavigation
key in front matter to add pages to the top-level navigation
- Use the
Templates:
- Eleventy supports various template formats, configurable in
.eleventy.js
- Eleventy supports various template formats, configurable in
Static Assets:
- Place images in the
img/
directory - CSS files should go in the
css/
directory
- Place images in the
Blog Features:
- Use tags in post front matter for categorization
- The archive page and tag pages are automatically generated
Deployment:
- After building, deploy the contents of the
_site
directory to your web host
- After building, deploy the contents of the
Important Notes
The project uses three main layouts: base, home, and post. Customize these in the
_includes/layouts/
directory.The
postlist.njk
file is a reusable component for displaying lists of posts.RSS feed template is located in
feed/feed.njk
.Sitemap generation is handled by
sitemap.xml.njk
.The project includes a
.nvmrc
file for specifying the Node.js version.A
todo.md
file is included for tracking project tasks and improvements.The template is set up with a
netlify.toml
file for easy deployment to Netlify.A
.editorconfig
file is included to maintain consistent coding styles.The project uses Renovate for dependency management, configured in
renovate.json
.For any advanced configurations or optimizations, refer to the Eleventy and Simple.css documentation.