- name: Use Node.js uses: actions/setup-node@v4 with: node-version: '20'
ul list-style: none; padding: 0;
nav a margin: 0 0.5rem;
# 5️⃣ Create the default folder structure mkdir -p src/_includes src/posts Your folder tree now looks like: eleventa full crack
Eleventy will automatically copy the src/assets folder because of the addPassthroughCopy we added earlier. Refresh the browser and you’ll see the styled page. | Platform | How to deploy | |----------|---------------| | GitHub Pages | Push the repo, then in the repo Settings → Pages, set Source to gh-pages branch. Use a GitHub Action that runs npm run build && git push origin _site:gh-pages . | | Netlify | Connect the repo, set the Build command to npm run build and the Publish directory to _site . Netlify auto‑detects Eleventy. | | Vercel | Same as Netlify – just add a vercel.json (optional) and set the output directory to _site . | | Static hosting (FTP, S3, Cloudflare Pages, etc.) | Upload the contents of the _site folder. No server‑side code needed. | - name: Use Node
touch src/index.njk # src/index.njk # --- layout: base.njk title: "Home" pagination: data: collections.post # we’ll create this collection soon size: 5 # number of posts per page alias: posts permalink: " pagination.href /" --- Use a GitHub Action that runs npm run