Commit Graph
36 Commits
Author SHA1 Message Date
Marcus Noble 25186c75b9 fix: RSS feed description contains only article content, not full page
Extract just the <article> element (title + body) for feed descriptions,
removing header, navigation, share buttons, and footer.
2026-11-16 15:29:02 +00:00
Marcus Noble 334fa146c7 fix: RSS feed includes full post content instead of summary only
- Extract body content from rendered HTML for feed descriptions
- Feed readers will now see full post content, not just front-matter summary
2026-11-16 15:26:01 +00:00
Marcus Noble 06a50db987 fix: add feed GUIDs and match production URL format
- Add <guid> elements to RSS feed (matching <link> URLs)
- Preserve dots in slugs (t.i.l. instead of til) to match production
- URLs now match production format: /YYYY-MM-DD-title-slug/
  No /posts/ prefix, with dots preserved for T.I.L. posts
- This ensures feed readers won't mark posts as new
2026-11-16 13:35:16 +00:00
Marcus Noble 63a171aefd fix: match production URL format and fix OG URL
- Use front-matter title for post slug (not filename)
- Remove /posts/ prefix from URLs to match production
- Remove /pages/ prefix from page URLs to match production
- Fix OG URL on index page (no longer shows .html extension)
- Remove dots from slugs (fixes T.I.L. posts being files not dirs)
- Collapse consecutive dashes in slugs
- Remove / from slug character class (prevents URL paths in slugs)
- Skip index.html in permalink plugin (already has correct path from pagination)

Production URL format: /YYYY-MM-DD-full-title-slug/
2026-11-16 12:15:05 +00:00
Marcus Noble b21390b1a4 fix: use @metalsmith/collections v2 sort API for descending post order
The v2 API uses sort: 'date:desc' instead of sortBy: 'date' + reverse:
true. This ensures posts display newest-first on the index page.
2026-11-16 11:10:33 +00:00
Marcus Noble b547cd3137 fix: copy static CSS files (pico.min.css, zenburn.css) to build
The .ignore(['css']) pattern was preventing all CSS files in src/css/
from being copied to the build directory. Only SCSS source files should
be ignored - pre-compiled CSS dependencies like pico.min.css and
zenburn.css need to be served by the static file server.
2026-11-16 11:04:31 +00:00
Marcus Noble 7a5c031b1d feat: modernize static site generator stack
- Node.js: Upgraded from v16 to v22 (latest LTS)
- SASS: Replaced deprecated node-sass with Dart Sass (sass package)
- 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
  - Added metalsmith-define for site metadata
  - Added gray-matter for YAML front matter extraction
- Markdown rendering: Updated to marked v18 for GFM support
- Express: Kept at v4.x (stable, compatible)
- Handlebars: Updated to v4.7 (latest)
- Custom plugins: Created local permalinks and handlebars-html plugins
  - Custom permalinks plugin replaces metalsmith-permalinks (broken substitute dep)
  - Custom handlebars jstransformer wrapper supports .html extension
- Feed generation: Custom RSS plugin (replaces deprecated metalsmith-feed)
- filterRoutes: Updated regex patterns for Express compatibility
- Template changes: Removed deprecated markdown="1" from partials
- Docker: Updated Dockerfile to use Node 22 Alpine
- Collection patterns: Updated to support both .md and .markdown extensions
- Pipeline: Reordered for correct metadata flow (front matter → markdown → layouts → permalinks)
2026-11-16 10:39:12 +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 21f1d9216c Updated redirect rules
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-21 07:03:17 +01:00
AverageMarcus 0bd69bd3f3 Handle more missing icons
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-19 07:08:25 +01:00
AverageMarcus 1b2e0d7501 Added redirect logic
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-05 05:41:52 +01:00
AverageMarcus 0aaf47909f Updated description
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-02 14:36:57 +01:00
AverageMarcus 186bdde093 Glitch theme
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-02 14:29:27 +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 58b92b4628 Added /healthz endpoint 2021-06-15 04:57:09 +01:00
AverageMarcus 8f13ad501d Added opengraph image to posts 2021-05-12 09:27:51 +01:00
AverageMarcus bd66550ccc Added sitemap 2021-01-29 22:45:22 +00:00
AverageMarcus cb6c8919b4 Redirect invalid feed requests 2020-11-21 20:22:43 +00:00
AverageMarcus 09b375f666 Added robots.txt 2020-11-18 12:14:51 +00:00
AverageMarcus 7a4e1324ee Add blackhole routes to common exploit crawlers 2020-11-18 12:12:40 +00:00
AverageMarcus e19ed52605 Added draft AV post 2018-08-30 20:20:50 +01:00
Marcus Noble 62d3f0ab14 Improved title of pages 2017-10-15 17:36:59 +01:00
Marcus Noble 6a45fd1d73 Removed cache 2017-10-15 07:48:59 +01:00
Marcus Noble 04a5c1e38c Improved developer workflow 🛠 2017-10-08 15:28:37 +01:00
Marcus Noble 3ef739f477 Perf 2017-06-07 06:55:21 +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 aebfa1f960 Removed localhost 2016-07-26 10:11:56 +01:00
Marcus Noble a66f3bc760 Added support for drafts 2016-07-26 10:08:49 +01:00
AverageMarcus 106004ce62 Added cachebusting 2016-05-27 07:02:17 +01:00
AverageMarcus 4df0cbbe57 Minified image 2016-05-27 06:44:07 +01:00
AverageMarcus 385a0c5327 Added imagemin 2016-05-27 06:25:28 +01:00
AverageMarcus c547212971 Added caching 2016-05-27 06:10:01 +01:00
AverageMarcus 58bedb277d Added compression 2016-05-27 06:04:05 +01:00
AverageMarcus a2e3afb01d Initial commit 2016-05-21 10:42:57 +01:00