Skip to content

Commit 5f071f2

Browse files
committed
canonicalizeTitlePostprocessor() needs to be done before websiteNavigationExtras()
1 parent a63c82c commit 5f071f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/project/types/website/website.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,13 @@ export const websiteProjectType: ProjectType = {
230230
project.dir,
231231
),
232232
),
233+
]);
234+
// add postprocessors that needs to be before other extras.html
235+
extras.html[kHtmlPostprocessors].unshift(
236+
websiteDraftPostProcessor,
233237
// Fix H1 title inconsistency
234238
canonicalizeTitlePostprocessor,
235-
]);
236-
extras.html[kHtmlPostprocessors].unshift(websiteDraftPostProcessor);
239+
);
237240

238241
// listings extras
239242
const hasBootstrap = formatHasBootstrap(format);

0 commit comments

Comments
 (0)