First work on actual site contents.

This commit is contained in:
Joshua Bemenderfer
2023-02-12 16:52:47 -05:00
parent 4e10b07561
commit 95842b73bd
20 changed files with 181 additions and 24 deletions

View File

@@ -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()))
}
}