Skip to content

Commit 23cc4cc

Browse files
authored
Build: Only replace title within head (avoid clobbering inline SVGs) (#4575)
The build was naively assuming that `title` would only ever appear in `head`, which is no longer true if SVGs are inlined. This fixes the selector to only replace `title` within `head`.
1 parent 0f22a30 commit 23cc4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

11ty/CustomLiquid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export class CustomLiquid extends Liquid {
351351
}
352352
}
353353
} else {
354-
const $title = $("title");
354+
const $title = $("head title");
355355

356356
if (scope.isTechniques) {
357357
const isObsolete =

0 commit comments

Comments
 (0)