1
0
mirror of synced 2025-12-23 21:07:12 -05:00

add comment

This commit is contained in:
Sarah Schneider
2021-07-01 12:33:37 -04:00
parent 083ba4e1eb
commit c032403ec7

View File

@@ -3,6 +3,8 @@ const path = require('path')
const Page = require('./page')
module.exports = async function createTree (originalPath, langObj) {
// This basePath definition is needed both here and in lib/page-data.js because this
// function runs recursively, and the value for originalPath changes on recursive runs.
const basePath = path.posix.join(__dirname, '..', langObj.dir, 'content')
// On recursive runs, this is processing page.children items in `/<link>` format.