@@ -39,7 +39,7 @@ const Wiki = sites => {
3939
4040 const storeEntries = (author, url, category, entries) => {
4141 Array.isArray(entries)
42− ? storeEntry(author, url, category, 'list-definitions', entries)
42+ ? storeEntry(author, url, category, `${category}-list-definition`, entries)
4343 : Object.keys(entries).forEach(entry => storeEntry(author, url, category, entry, entries[entry]))
4444 }
4545
@@ -95,7 +95,7 @@ const Wiki = sites => {
9595
9696 const formatEntries = entries => (currentHtml, category) => {
9797 const definitions = entries[category].reduce(formatEntry, '')
98− const title = category === 'list-definitions'
98+ const title = category.endsWith('list-definition')
9999 ? ''
100100 : `<li class='name'><strong>${category.toLowerCase()}</strong></li>`
101101 return `${currentHtml}<ul class='term'>${title}${definitions}</ul>`
@@ -108,7 +108,7 @@ const Wiki = sites => {
108108 }
109109
110110 const foundMatches = Object.keys(entries[key])
111− .filter(entry => entry !== 'list-definitions')
111+ .filter(entry => !entry.endsWith('list-definition'))
112112 .map(searchOtherCategories)
113113 const flattened = [].concat.apply([], foundMatches)
114114 return Array.from(new Set(flattened)).filter(related => related !== key)