A static website starter kit for the modern web
This project includes the following setup right out of the box
It also includes some handy defaults already configured
# A few options:
# 1. Click "Use this template" above to create a new repo
# 2. Clone this repo to your local machine
# Install dependencies
npm install
# Run locally (will start on localhost:8080 by default).Eleventy will watch for file changes and live reload. Parcel will bundle js and watch for any js changes.
npm run dev
# Build for production (output will be in dist directory)
npm run build
By default, all pages are located in src/pages
. Add all of your pages and subdirectories here. By default I have created all files with the .liquid
extension. You are totally free to use whatever flavor you want, eleventy supports a large list of template languages
If you change, make sure to add in the desired language to the purge array, found in
tailwind.config.js
. By default, its'./src/**/*.liquid'
Adding an icon is simple, just add in a <i></i>
html element with the data-feather
attribute. Example below. By default Feather Icons are used.
<i data-feather="camera"></i>
Everything in the /public
directory and subdirectories will be copied to the top level of dist
. So for example, access public/images/example.jpg
from the site looks like this.
<img src="/images/example.jpg" />