Skip to content

Commit ca869a3

Browse files
committed
fix: enhance warning message for identical h1 and frontmatter titles to clarify redundancy
1 parent 1419707 commit ca869a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/validate-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function validateTitle(filePath, frontmatter, content) {
131131
// If both present, they must not be identical
132132
if (h1Title && fmTitle) {
133133
if (h1Title === fmTitle) {
134-
warnings.push(`h1 and frontmatter title are identical ("${h1Title}"). Should be different`);
134+
warnings.push(`h1 and frontmatter title are identical ("${h1Title}") and thus redundant. Both fields should only be used if different strings are required for page and navigation titles.`);
135135
}
136136
}
137137

0 commit comments

Comments
 (0)