Include subarticles in flatten articles list

This commit is contained in:
Oleg Kalachev
2022-04-12 01:55:33 +04:00
parent ed619935ce
commit bc032e5afb

View File

@@ -34,7 +34,7 @@ exports.readSummary = function (path) {
item.path = path;
item.collapsible = true;
} else if (level == 1) {
} else if (level == 1 || level == 2) {
if (!item.children) {
item.children = [];
if (item.path) item.children.push(item.path);