Commit Graph
51 Commits
Author SHA1 Message Date
hermes-agentandMarcus Noble c69e2cbb97 Modernize static site generator stack (Node 22, updated Metalsmith plugins) (#2)
## Changes

### Node.js
- Upgraded from v16 to v22 (latest LTS) via `.nvmrc` and `Dockerfile`

### Sass
- Replaced deprecated `node-sass` with Dart Sass (`sass@^1.108.2`)
- Pre-build compilation of SCSS to CSS before Metalsmith run
- Added `.ignore(["css"])` to prevent source SCSS files being copied to build

### Metalsmith Plugins
Migrated to modern scoped packages:
- `@metalsmith/markdown` (v1.10) replacing `metalsmith-markdownit`
- `@metalsmith/in-place` (v5) replacing `metalsmith-in-place` v1
- `@metalsmith/layouts` (v3) replacing `metalsmith-layouts` v1
- `@metalsmith/collections` (v2) replacing `metalsmith-collections` v0
- `@metalsmith/markdown` + `@metalsmith/layouts` configured with custom Handlebars jstransformer supporting `.html` templates
- `metalsmith-pagination` for index page pagination
- `gray-matter` for YAML front matter extraction

### Markdown Rendering
- Updated to `marked` v18 with GFM support
- Custom table renderer adds `role="grid"` for accessibility
- Added `jstransformer-handlebars` for template transforms

### Custom Plugins
- `plugins/permalinks.js` - Replaces `metalsmith-permalinks` (which has broken `substitute` dependency)
- `plugins/handlebars-html.js` - Custom jstransformer wrapper that supports `.html` file extensions for Handlebars templates

### Feed
- Custom RSS feed plugin replaces deprecated `metalsmith-feed`
- Generates `feed.xml` with all 56 posts

### Routing
- `filterRoutes.js` - Updated regex patterns for Express 4.x compatibility

### Templates
- Removed deprecated `markdown="1"` from `picture.html` and `tweet.html`

### Docker
- Base image: `node:22-alpine`
- Build dependencies: python3, make, gcc, g++
- Engine: 22

## Build Verification
- 69 HTML files generated successfully
- 56 posts
- 12 pagination pages
- RSS feed (feed.xml) generated
- Sitemap (sitemap.xml) generated
- SCSS compilation working (style.css)

All build output is in the `build/` directory.

---------

Co-authored-by: Marcus Noble <marcus@averagemarcus.com>
Reviewed-on: #2
Reviewed-by: Marcus Noble <1+averagemarcus@noreply.git.cluster.fun>
Co-authored-by: hermes-agent <hermes-agent@cluster.fun>
2026-11-16 14:10:51 +00:00
AverageMarcus c4263762c7 Added 'investigating-and-fixing-stoppodsandbox' post
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-09-28 12:17:11 +01:00
AverageMarcus 252f5143d1 Added talk on public speaking
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-04-30 20:08:25 +01:00
AverageMarcus 9a0cf62882 Updated profile image
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-02-17 16:38:29 +00:00
AverageMarcus fd867c7262 Updarte social share image
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-02-02 08:28:23 +00:00
AverageMarcus f69df643f7 Added og:article:author meta tag
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-01-05 19:51:27 +00:00
AverageMarcus 2e328133cc Updated social links
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-01-04 16:06:54 +00:00
AverageMarcus ac1744869d Added Bootstrapping a Civo cluster with OpenTofu and Flux
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2025-01-03 11:08:19 +00:00
AverageMarcus 68e1e77843 Added fediverse creator meta tag
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2024-07-03 09:25:04 +01:00
AverageMarcus 57bd0f0fcc Updated favicons
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-19 06:55:41 +01:00
AverageMarcus 3a123ab8ee Include pico.css in src
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-06-22 20:13:42 +01:00
AverageMarcus 8acfafab45 Updated index title
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-29 17:12:18 +01:00
AverageMarcus 6307509542 Updated mastodon link 2022-05-14 22:06:37 +00:00
AverageMarcus 186bdde093 Glitch theme
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-02 14:29:27 +01:00
AverageMarcus f99cd77e20 Use smaller image
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-01 12:32:41 +01:00
AverageMarcus c4dc1d26d2 Updated favicons
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-01 11:34:18 +01:00
AverageMarcus d01a3f227c Cleaned up some unneccisary redirects 2021-09-05 07:48:49 +01:00
AverageMarcus c10c858988 Handle some 404's better 2021-09-03 07:02:57 +01:00
AverageMarcus fe4de971a3 fix images 2021-08-09 05:09:58 +01:00
AverageMarcus 8f13ad501d Added opengraph image to posts 2021-05-12 09:27:51 +01:00
AverageMarcus 7485ae74b1 Remove Google Analytics 🎉 2020-11-20 14:20:52 +00:00
AverageMarcus e348daa341 Added ios post 2020-11-10 18:32:40 +00:00
AverageMarcus 7e94df1cce Added header 2018-02-10 18:13:49 +00:00
AverageMarcus f771bb4960 Filter out localhost analytics 2018-02-04 14:22:15 +00:00
AverageMarcus eaa27bad09 Try out analytics 2018-02-03 11:03:03 +00:00
Marcus Noble 4fb38ae95a Fixed heading link 2018-01-02 13:34:12 +00:00
Marcus Noble 7177768ae7 Defer loading of syntax css 2018-01-01 09:51:08 +00:00
Marcus Noble 5d351685f4 Allow HTML to be passed to caption 2017-12-31 15:05:10 +00:00
Marcus Noble 9a04d3481d Don't use ES6 syntax 2017-10-17 06:46:42 +01:00
Marcus Noble 4fab660eee Updated share button 2017-10-15 17:46:30 +01:00
Marcus Noble 62d3f0ab14 Improved title of pages 2017-10-15 17:36:59 +01:00
Marcus Noble bd38076041 Added share buttons 2017-10-15 17:31:16 +01:00
Marcus Noble 09e95c1b65 Merge pull request #5 from AverageMarcus/service_worker
Added service worker
2017-10-12 18:03:16 +01:00
Marcus Noble 434bdfbefb Added image to opengraph 2017-10-12 17:44:39 +01:00
Marcus Noble 628c620093 Added service worker 2017-10-11 21:25:20 +01:00
Marcus Noble 5cf7af35b2 Updated highlight JS with TS support 2017-10-07 10:17:00 +01:00
Marcus Noble 7aa133e60d Added title to footer icon links 2017-09-02 12:59:02 +01:00
Marcus Noble 0e1e8af058 Fixed some linting issues 2017-09-02 12:57:09 +01:00
Marcus Noble bbdbb2f43c Enabled Do Not Track for twitter embeds 2017-09-02 10:31:14 +01:00
Marcus Noble 3ef739f477 Perf 2017-06-07 06:55:21 +01:00
Marcus Noble acdb5ab5ea Fixed images 2017-06-03 12:01:38 +01:00
Marcus Noble 16288ee961 Redesigned to simplicity 2017-06-03 11:55:30 +01:00
Marcus Noble eacf94c896 Added hackference 2016 post 2016-10-25 07:05:42 +01:00
Marcus Noble eef23e6164 Added icons and meta 2016-10-17 19:53:00 +01:00
Marcus Noble a4fd96a4de Open graph support 2016-07-26 13:41:47 +01:00
Marcus Noble 7f67221413 Set description to title of post 2016-07-26 13:29:57 +01:00
Marcus Noble 85dbfe9fe6 Fixed MD issue 2016-05-27 16:43:21 +01:00
AverageMarcus b1bbc1f3ee Updated experience 2016-05-27 16:23:07 +01:00
AverageMarcus 71d25293ec Added favicon 2016-05-27 07:05:51 +01:00
AverageMarcus 106004ce62 Added cachebusting 2016-05-27 07:02:17 +01:00