Personal GitHub Pages site built with Eleventy.
- Node.js (v18 or higher recommended)
- npm
npm installRun a local development server with hot reload:
npm run serveThe site will be available at http://localhost:8080.
Generate the static HTML files:
npm run buildThis compiles templates from src/ into HTML files in the root directory.
src/
├── _includes/
│ ├── base.njk # Base HTML layout
│ ├── nav-main.njk # Main navigation
│ └── nav-url-translation.njk # URL translation section nav
├── _data/
│ └── site.json # Site metadata
├── *.njk # Page templates
└── url-translation/
└── *.njk # URL translation section templates
- Main nav:
src/_includes/nav-main.njk - URL translation nav:
src/_includes/nav-url-translation.njk
Changes to navigation files automatically apply to all pages using that nav.