From 6c7dd4a8b770bd6788f98143e17cd12bcac025e7 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 3 May 2026 13:02:54 +0200 Subject: [PATCH] perf: incremental dev builds + fetchpriority on photo posts - package.json: add --incremental to dev script (skip unchanged templates) - post.njk: first photo gets fetchpriority=high instead of loading=lazy (first photo is the LCP element on photo post pages) --- _includes/layouts/post.njk | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index c8cda8c..f86b5d4 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -73,7 +73,7 @@ withBlogSidebar: true {% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %} {% set photoUrl = '/' + photoUrl %} {% endif %} - {{ img.alt | default('Photo from: ' + title) }} + {{ img.alt | default('Photo from: ' + title) }} {% endfor %} {% endif %} diff --git a/package.json b/package.json index 6b74183..6c8197c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build:og": "node lib/og-cli.js content ${OG_CACHE_DIR:-.cache/og} 'giersig.'", "build": "eleventy", - "dev": "eleventy --serve --watch", + "dev": "eleventy --serve --watch --incremental", "build:css": "postcss css/tailwind.css -o css/style.css", "check:upstream-widgets": "node scripts/check-upstream-widget-drift.mjs", "check:upstream-widgets:strict": "node scripts/check-upstream-widget-drift.mjs --strict",