11ty starter site with example code and how-tos.
11ty-starter is a static site example that utilizes Eleventy as a comprehensive build system for HTML, CSS, JavaScript, and image optimization. It showcases various features of Eleventy and provides a solid foundation for developing static websites.
To install 11ty-starter, follow these steps:
npm install
To enable development mode on Linux/macOS, set the ELEVENTY_ENV environment variable to “development”:
export ELEVENTY_ENV=development
On Windows cmd:
SET ELEVENTY_ENV=development
Or on Windows PowerShell:
$env:ELEVENTY_ENV = "development"
Launch the Eleventy build process and server by running the following command:
npx eleventy --serve
Navigate to http://localhost:8080 in your browser to access the development build.
To enable production mode on Linux/macOS, set the ELEVENTY_ENV environment variable to “production”:
export ELEVENTY_ENV=production
On Windows cmd:
SET ELEVENTY_ENV=production
Or on Windows PowerShell:
$env:ELEVENTY_ENV = "production"
Run the Eleventy build process by executing the following command:
npx eleventy
The generated files in the build folder can be uploaded to any web host for deployment.
11ty-starter is an example static site that demonstrates the capabilities of Eleventy as a powerful build system for creating static websites. Its features include markdown content management, custom templates, article post management, navigation menu generation, and various optimization options for HTML, CSS, and images. With easy installation and production-ready builds, it provides a solid foundation for developing static sites efficiently.