First work on actual site contents.
This commit is contained in:
@@ -4,7 +4,7 @@ module.exports = async function(doc) {
|
||||
const { next, line, match, tail, level, head } = doc
|
||||
|
||||
const pageData = {
|
||||
type: `page`,
|
||||
type: `Page`,
|
||||
title: '',
|
||||
description: [],
|
||||
layout: '',
|
||||
@@ -21,8 +21,8 @@ module.exports = async function(doc) {
|
||||
pageData.description.push(line(l))
|
||||
}
|
||||
}
|
||||
else if (match('section')) {
|
||||
pageData.children.push(await knownNodes.section(doc, level()))
|
||||
else if (match('Section')) {
|
||||
pageData.children.push(await knownNodes.Section(doc, level()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user