@adobe/helix-html-pipeline 6.32.8 → 6.33.0

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [6.33.0](https://github.com/adobe/helix-html-pipeline/compare/v6.32.8...v6.33.0) (2026-10-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * 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))
7
+
1
8
  ## [6.32.8](https://github.com/adobe/helix-html-pipeline/compare/v6.32.7...v6.32.8) (2026-10-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.32.8",
3
+ "version": "6.33.0",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -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.32",
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.6",
84
+ "esmock": "2.7.7",
85
85
  "husky": "9.1.7",
86
- "js-yaml": "5.4.2",
87
- "jsdom": "30.1.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.2",
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;
@@ -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) {