Skip to content

Commit 35ed95d

Browse files
committed
feat(mmc): clearer mmc display
1 parent 2fb5f3d commit 35ed95d

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

routes/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,9 @@ function addMMC(worldRecord) {
283283

284284
var categories = matchCategories(worldRecord.tags);
285285

286-
var multipleCategories = categories.length > 1; // IN MULTIPLE BAD
287-
288286
worldRecord.mmc = {
289287
entered:true,
290-
categories,
291-
multipleCategories
288+
categories
292289
}
293290

294291
return worldRecord;

views/mixins/mmc.pug

+11-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ mixin mmcMixin(mmcData)
55
img(src='/images/CreatorJam.png')
66
ul
77
li ✅ This world is entered into the MMC 2025!
8-
li It is entered into the following Categories:
9-
ul
10-
each category in mmcData.categories
11-
li ✅ !{category.title}
12-
if mmcData.multipleCategories
13-
li ❌ It is entered into more than one category, please fix this!
8+
if mmcData.categories.length > 0
9+
li It is entered into the following Categories:
10+
ul
11+
each category in mmcData.categories
12+
li ✅ !{category.title}
13+
if mmcData.categories.length > 1
14+
li ❌ It is entered into more than one category.
15+
if mmcData.categories.length == 0
16+
li ❌ It is entered into no categories.
17+
18+
p See #[a(href='https://wiki.resonite.com/MMC_2025') our wiki] for more information on MMC.

0 commit comments

Comments
 (0)