@adobe/helix-html-pipeline 6.32.8 → 6.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/package.json +7 -7
- package/src/steps/extract-metadata.js +6 -0
- package/src/steps/render.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.33.1](https://github.com/adobe/helix-html-pipeline/compare/v6.33.0...v6.33.1) (2026-10-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency mime to v4.1.1 ([#1156](https://github.com/adobe/helix-html-pipeline/issues/1156)) ([293f648](https://github.com/adobe/helix-html-pipeline/commit/293f6482ccf90248cd1d9399c6f7da2c04545631))
|
|
7
|
+
|
|
8
|
+
# [6.33.0](https://github.com/adobe/helix-html-pipeline/compare/v6.32.8...v6.33.0) (2026-10-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add html-title:suffix to append a suffix to the title element only ([#1150](https://github.com/adobe/helix-html-pipeline/issues/1150)) ([86e13f7](https://github.com/adobe/helix-html-pipeline/commit/86e13f7d978faacfde33ca72f99f10a0323a9e50))
|
|
14
|
+
|
|
1
15
|
## [6.32.8](https://github.com/adobe/helix-html-pipeline/compare/v6.32.7...v6.32.8) (2026-10-20)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.33.1",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"lodash.escape": "4.0.1",
|
|
56
56
|
"mdast-util-to-hast": "13.2.1",
|
|
57
57
|
"mdast-util-to-string": "4.0.0",
|
|
58
|
-
"mime": "4.1.
|
|
58
|
+
"mime": "4.1.1",
|
|
59
59
|
"parse5": "8.0.1",
|
|
60
60
|
"rehype-format": "5.0.1",
|
|
61
61
|
"rehype-parse": "9.0.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"unist-util-visit-parents": "6.0.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/eslint-config-helix": "3.0.
|
|
73
|
+
"@adobe/eslint-config-helix": "3.0.33",
|
|
74
74
|
"@eslint/config-helpers": "0.7.0",
|
|
75
75
|
"@markedjs/html-differ": "5.0.5",
|
|
76
76
|
"@semantic-release/changelog": "7.0.0",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
82
82
|
"eslint-plugin-header": "3.1.1",
|
|
83
83
|
"eslint-plugin-import": "2.32.0",
|
|
84
|
-
"esmock": "2.7.
|
|
84
|
+
"esmock": "2.7.9",
|
|
85
85
|
"husky": "9.1.7",
|
|
86
|
-
"js-yaml": "5.4.
|
|
87
|
-
"jsdom": "30.1.
|
|
86
|
+
"js-yaml": "5.4.3",
|
|
87
|
+
"jsdom": "30.1.2",
|
|
88
88
|
"junit-report-builder": "5.1.2",
|
|
89
89
|
"lint-staged": "17.6.0",
|
|
90
|
-
"mocha": "12.0.
|
|
90
|
+
"mocha": "12.0.3",
|
|
91
91
|
"mocha-multi-reporters": "1.5.2",
|
|
92
92
|
"mocha-suppress-logs": "0.6.0",
|
|
93
93
|
"semantic-release": "25.0.9"
|
|
@@ -281,6 +281,12 @@ export default function extractMetaData(state, req) {
|
|
|
281
281
|
if (meta.title && titleSuffix && titleSuffix !== '""') {
|
|
282
282
|
meta.title = `${meta.title} ${titleSuffix}`;
|
|
283
283
|
}
|
|
284
|
+
// append the suffix to the <title> element only (not og:title / twitter:title)
|
|
285
|
+
const htmlTitleSuffix = metaConfig['html-title:suffix'];
|
|
286
|
+
delete metaConfig['html-title:suffix'];
|
|
287
|
+
if (meta.title && htmlTitleSuffix && htmlTitleSuffix !== '""') {
|
|
288
|
+
meta.htmlTitle = `${meta.title} ${htmlTitleSuffix}`;
|
|
289
|
+
}
|
|
284
290
|
|
|
285
291
|
if (!('description' in meta)) {
|
|
286
292
|
meta.description = extractDescription(hast) || undefined;
|
package/src/steps/render.js
CHANGED
|
@@ -59,7 +59,7 @@ export default async function render(state, req, res) {
|
|
|
59
59
|
}
|
|
60
60
|
const $head = h('head');
|
|
61
61
|
if (meta.title !== undefined) {
|
|
62
|
-
$head.children.push(h('title', meta.title));
|
|
62
|
+
$head.children.push(h('title', meta.htmlTitle ?? meta.title));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
if (meta.canonical) {
|