Commit 42e57af
refactor: Migrate from Jekyll to Eleventy 3.0 (#52)
* Migrate from Jekyll to Eleventy 3.0
This commit migrates the entire website from Jekyll (Ruby) to Eleventy (Node.js).
Eleventy was chosen because it has native support for Liquid templates, which
minimizes changes to existing templates.
## New files
### Configuration
- eleventy.config.js: Main configuration in ESM format with collections,
filters, and passthrough copy rules
- package.json: Node.js dependencies (Eleventy, syntax highlighting, Sass)
- .nvmrc: Node.js version 24 (current LTS)
- .nojekyll: Prevents GitHub Pages from running Jekyll
### Data
- _data/site.json: Site variables (url)
- _data/home/roles.yml: Moved from _includes/
### Layouts and templates
- _layouts/employee.html: New layout for employee pages with content wrapper
- _includes/lib/prism.scss: Syntax highlighting theme (replaces Rouge)
- assets/site.js.liquid: JavaScript concatenation via Liquid template
### Directory data (for layout inheritance)
- jobba/jobba.json
- om-oss/om-oss.json
- konsultnatverk/konsultnatverk.json
- ai-labbet/ai-labbet.json
- roller/roller.json
- _posts/_posts.json
### CI/CD
- .github/workflows/deploy.yml: GitHub Actions for automatic deployment
### Documentation
- CLAUDE.md: Instructions for AI assistants and lessons learned from migration
- AGENTS.md: Symbolic link to CLAUDE.md
- README.md: Updated with new instructions for nvm and npm
## Deleted files
- Gemfile, Gemfile.lock: Ruby dependencies
- _config.yml: Jekyll configuration
- .ruby-version: Ruby version
- _includes/lib/rouge-github.scss: Rouge syntax highlighting (replaced by Prism)
- assets/site.js: Replaced by site.js.liquid
## Template changes
### Variable access
Jekyll: {{ page.title }}, {{ site.posts }}
Eleventy: {{ title }}, {{ collections.posts }}
### Collection loops
Jekyll: {% for post in site.posts %}{{ post.title }}
Eleventy: {% for post in collections.posts %}{{ post.data.title }}
### Updated includes
- _includes/home/blog.html: collections.posts, post.data.*
- _includes/home/roles.html: home.roles instead of site.data.home.roles
- _includes/blog/*.html: collections.posts, post.data.*, swedishDate filter
- _includes/employees/index.html: collections.employees, employee.data.*
## Content changes
### Employee pages (_employees/*.md)
- Added layout: employee for correct content wrapper
### Blog posts
- Fixed {{page.image_url}} to {{image_url}} in 7 posts
- Fixed markdown rendering after HTML blocks in acb2013.md
(added blank lines after <h3> and <img> tags)
- Updated old /images/employees/ paths to /assets/img/employees/
### Other pages
- Fixed {{page.*}} to {{*}} in ai-labbet, jobba, konsultnatverk, om-oss, roller
## SCSS changes
- assets/site.scss: Changed from @import to @use (modern Sass syntax)
- Sass is now compiled separately via npm script, not by Eleventy
## Configuration details
### Collections
- posts: Sorted by date (newest first) with next/previous links
- employees: Sorted alphabetically by filename
### Filters
- swedishDate: Formats dates in Swedish (e.g., "24 januari 2025")
- removeHtmlExtension: Removes .html from URLs
### Passthrough copy
- assets/
- All image formats (jpg, png, gif, svg, webp) in all directories
- favicon.ico
### Ignores
- README.md, CLAUDE.md, AGENTS.md (documentation)
- assets/blog/**/*.html and .md (demo files with Mustache syntax)
- **/*.scss (compiled separately)
* Update to Node.js 24 and add SCSS watch for development
- Bump Node.js version to 24 in workflow, package.json and .nvmrc
- Add sass:watch script for live SCSS recompilation
- Run Eleventy and Sass watch in parallel during development
* Update to Node.js 24 and add SCSS watch for development
Changes:
- Update Node.js requirement to version 24 (current LTS)
- Add scripts/dev.mjs for parallel Eleventy and SCSS watch in development
- Add sass:watch npm script for SCSS file watching
- Fix intro_image variable name (was intro-image, now uses underscore)
- Add pagination support to blog archive and index templates
- Update deploy workflow to use Node.js 24
* Chore: add package-lock and use npm ci
---------
Co-authored-by: Christian Lizell <christian.lizell@svt.se>1 parent 16f1974 commit 42e57af
101 files changed
Lines changed: 2968 additions & 819 deletions
File tree
- .github/workflows
- _data
- home
- _employees
- _includes
- ai-labbet
- blog
- employees
- home
- lib
- page
- _layouts
- _posts
- ai-labbet
- industri
- assets
- blogg
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- 2024
- 2025
- 2026
- 2027
- 2028
- 2029
- 2030
- jobba
- konsultnatverk
- om-oss
- roller
- apputvecklare
- fullstackutvecklare
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
This file was deleted.
0 commit comments