fix: include slug from frontmatter in extractMetadata function
- extractMetadata was not including the slug field from frontMatter - Added slug: frontMatter.slug to the returned metadata object - Now the slug check on line 144 will actually find the frontmatter slug - Fixes glossary translation slugs (glossary-de, glossary-fr) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
79da253265
commit
b1b179eb28
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,8 @@ function extractMetadata(filename, content, frontMatter) {
|
||||||
version,
|
version,
|
||||||
author,
|
author,
|
||||||
tags,
|
tags,
|
||||||
status: 'published'
|
status: 'published',
|
||||||
|
slug: frontMatter.slug // Include slug from frontmatter if present
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue