Free
A simple landing page built with 11ty and Tailwind CSS.
About the template
Port of the Hugo Version
How to use this template
Requirements:
- Eleventy (developed and tested with version 0.12.1)
- Tailwind CSS
Setup:
- Fork, clone or download
- cd into the root folder
- run npm install
- run npm run serve
- open a browser and go to http://localhost:8080
Basic configuration:
- Eleventy -> ./.eleventy.js
- Tailwind -> ./tailwind.config.js
- Netlify -> ./netlify.toml
CSS is built via PostCSS and based on ./src/_includes/css/_page.css. Building CSS gets triggered by ./src/css/page.11ty.js and Tailwind's config is set to JIT (see: Tailwind docs)
Please note that this CSS build does not include the normalize.css file used for the 2 regular pages (imprint, privacy) - a minified production version is stored in ./src/static/css and gets included in the build by default.
Change Content:
Change Templates/Layout:
Best have a look at ./layouts/base.njk first to understand how it all comes together - the page itself is constructed from partial templates stored in ./src/includes/ and each section has a corresponding template file (section.**.njk) stored there.
index.njk in ./src/ arranges everything, meaning that sections can be added/re-ordered/removed/... there.