Skip to content

Commit 36464cf

Browse files
committed
Fix single-page categories
1 parent 1d57292 commit 36464cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/src/ba/sake/flatmark/FlatmarkGenerator.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ class FlatmarkGenerator(ssrServerUrl: String, webDriverHolder: WebDriverHolder,
174174
markdownRenderer,
175175
templateHandler,
176176
paginateItems = None,
177-
categoryContexts = ListMap.empty,
177+
categoryContexts = siteConfig.categories.map { case (catKey, catValue) =>
178+
catKey -> CategoryContext(catValue.label, catValue.description, Seq.empty)
179+
},
178180
dataYamls = dataYamls
179181
)
180182
}.toSeq

0 commit comments

Comments
 (0)