├── .eleventy.js ├── .eleventyignore ├── .gitignore ├── README.md ├── _includes └── layout.html ├── assets ├── script.js └── styles.css ├── index.html └── netlify.toml /.eleventy.js: -------------------------------------------------------------------------------- 1 | module.exports = function (eleventyConfig) { 2 | eleventyConfig.addPassthroughCopy("./assets") 3 | 4 | return { 5 | passthroughFileCopy: true, 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.eleventyignore: -------------------------------------------------------------------------------- 1 | README.md 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _site 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Eleventy Skeleton 2 | 3 | Inspired by [Possibly the Easiest Way to Run An SSG](https://css-tricks.com/possibly-the-easiest-way-to-run-an-ssg/). 4 | 5 | No dependencies. No plugins. No preprocessors. Just make a static website. 6 | 7 | Out of the box Netlify deploys. Includes mini CSS reset by Eric Meyer. 8 | 9 | ## Increase your power levels 10 | 11 | 1. [Add sass](https://egghead.io/lessons/11ty-add-sass-compiling-and-watch-for-changes-in-eleventy-11ty) 12 | 3. [Add HTML templating](https://www.11ty.dev/docs/languages/) 13 | 4. [Add JS transpilation/webkit](https://statickit.com/guides/eleventy-webpack) 14 | 5. [Add favicons/device icons](https://www.favicon-generator.org/) 15 | 6. [Add a sitemap](https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap) 16 | 7. [Configure eleventy](https://www.11ty.dev/docs/watch-serve/) 17 | 18 | ## Commands 19 | 20 | These commands assume you're in a unix environment, but they should work anywhere `npx`/`npm` is available. 21 | 22 | ### Develop 23 | 24 | ```sh 25 | $ npx @11ty/eleventy --serve 26 | ``` 27 | 28 | ### Build 29 | 30 | ```sh 31 | $ npx @11ty/eleventy 32 | ``` 33 | 34 | ## Netlify 35 | 36 | First, enable your Eleventy Skeleton repo on Netlify's interface. 37 | 38 | When prompted, clear the `build` and `publish` fields (that's what your `netlify.toml` is for). Then set your deploy branch (e.g., `main`). 39 | 40 | Now each time you push to your deploy branch you'll also deploy your most recent changes. 🎉 41 | -------------------------------------------------------------------------------- /_includes/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Template by geotrev.
10 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | base = "" 3 | publish = "_site" 4 | command = "npx @11ty/eleventy" 5 | --------------------------------------------------------------------------------