Skip to content

Commit 8f78afb

Browse files
committed
.tree -> .roots
1 parent 88658d3 commit 8f78afb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/frontpage/controller/frontpage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ exports.get = async function (ctx, next) {
4040
// path
4141
// siblings
4242
async function renderTop() {
43-
const tree = TutorialTree.instance().tree;
43+
const roots = TutorialTree.instance().roots;
4444

4545
let articles = {};
4646

4747
// render top-level content
48-
for (let slug of tree) {
48+
for (let slug of roots) {
4949
let article = TutorialTree.instance().bySlug(slug);
5050

5151
let renderer = new ArticleRenderer();

modules/frontpage/templates/blocks/_frontpage-content/index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ mixin frontpage-content(data)
4343
+e.title= t('tutorial.part3.title')
4444
+e.description!= t('tutorial.part3.content')
4545
+b.list
46-
+partList(tutorialTree.tree.slice(2))
46+
+partList(tutorialTree.roots.slice(2))
4747

0 commit comments

Comments
 (0)