diff --git a/public/js/components/document-cards.js b/public/js/components/document-cards.js index 30ae6659..7983a219 100644 --- a/public/js/components/document-cards.js +++ b/public/js/components/document-cards.js @@ -234,8 +234,9 @@ class DocumentCards { advanced: '●' }; - const levelIcon = levelIcons[section.technicalLevel] || '○'; - const levelLabel = section.technicalLevel.charAt(0).toUpperCase() + section.technicalLevel.slice(1); + const technicalLevel = section.technicalLevel || 'basic'; + const levelIcon = levelIcons[technicalLevel] || '○'; + const levelLabel = technicalLevel.charAt(0).toUpperCase() + technicalLevel.slice(1); // Add soft hyphens to long titles for better wrapping const titleWithHyphens = this.insertSoftHyphens(section.title); diff --git a/scripts/fix-glossary-structure.js b/scripts/fix-glossary-structure.js index 76f436f5..68144bb4 100644 --- a/scripts/fix-glossary-structure.js +++ b/scripts/fix-glossary-structure.js @@ -160,6 +160,7 @@ async function run() { { $set: { slug: 'glossary', // Normalize to lowercase + category: 'getting-started', // Move to Getting Started section sections: sections, translations: translations, content_html: markdownToHtml(en.content),