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:
TheFlow 2025-11-01 10:58:17 +13:00
parent 79da253265
commit b1b179eb28

View file

@ -117,7 +117,8 @@ function extractMetadata(filename, content, frontMatter) {
version,
author,
tags,
status: 'published'
status: 'published',
slug: frontMatter.slug // Include slug from frontmatter if present
};
}