From a8922eed9edb38dce416ef7be32924abe0c7f603 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sat, 1 Nov 2025 10:58:17 +1300 Subject: [PATCH] fix: include slug from frontmatter in extractMetadata function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- scripts/migrate-documents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/migrate-documents.js b/scripts/migrate-documents.js index 714b1268..9a7beea8 100755 --- a/scripts/migrate-documents.js +++ b/scripts/migrate-documents.js @@ -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 }; }