Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pjsier/11ty-starter-kit
Minimal starter project for 11ty static sites
https://github.com/pjsier/11ty-starter-kit
11ty 11ty-template eleventy eleventy-template
Last synced: about 2 months ago
JSON representation
Minimal starter project for 11ty static sites
- Host: GitHub
- URL: https://github.com/pjsier/11ty-starter-kit
- Owner: pjsier
- License: mit
- Created: 2020-12-19T21:25:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T12:21:38.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T17:21:49.667Z (3 months ago)
- Topics: 11ty, 11ty-template, eleventy, eleventy-template
- Language: JavaScript
- Homepage:
- Size: 471 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 11ty-starter-kit
[![Build status](https://github.com/pjsier/11ty-starter-kit/workflows/CICD/badge.svg)](https://github.com/pjsier/11ty-starter-kit/actions?query=workflow%3ACICD)
Minimal starter project for [11ty](https://11ty.dev/) designed for basic static sites with some interactive content.
This is based on some boilerplate setup I was copying between projects like [ilfair.tax](https://ilfair.tax/en/) and this [field guide to Chicago government](https://field-guides-prod.citybureau.org/en/).
## Features
- [TailwindCSS](https://tailwindcss.com/) for styles
- [Rollup](https://rollupjs.org/guide/en/) for bundling JS for modern browsers using ``
- [Webpack](https://webpack.js.org/) for creating a bundle only served to legacy browsers like IE 11 through `<script nomodule>`
- Minifies assets and includes them in inline tags
- Basic templates in [nunjucks](https://mozilla.github.io/nunjucks/), but also supports 11ty.js templates with an `html` tagged template literal for better editor support
- Some reasonable defaults for Markdown, including opening external links in new tabs
- Sets standard metadata tags and sitemap.xml
- GitHub Actions deploy workflow## Get started
You can set up a project with this starter kit by clicking the "Use this template" button on this repo. Once you've created your project, you can get started with these steps.
1. Clone your new repository (replace the URL with your repo)
```
git clone https://github.com/<USERNAME>/<PROJECT>.git
```2. Move to the new project directory and install dependencies
```
cd <PROJECT>
npm install
```3. Start a local server to see if everything is working. You should be able to access your site at [http://localhost:8080/](http://localhost:8080/)
```
npm start
```4. Change the project metadata in [`./site/_data/site.js`](./site/_data/site.js)