This commit is contained in:
Travis Fischer
2022-04-08 10:44:34 -04:00
parent 40fc827578
commit 3c1fad5f87
3 changed files with 3 additions and 12 deletions

View File

@@ -87,7 +87,6 @@ const propertyDateValue = (
) => {
if (pageHeader && schema?.name?.toLowerCase() === 'published') {
const publishDate = data?.[0]?.[1]?.[0]?.[1]?.start_date
console.log('date', { data, publishDate })
if (publishDate) {
return `Published ${formatDate(publishDate, {

View File

@@ -34,14 +34,11 @@ export async function getAllPagesImpl(
})
if (map[canonicalPageId]) {
console.error(
'error duplicate canonical page id',
console.warn('error duplicate canonical page id', {
canonicalPageId,
pageId,
map[canonicalPageId]
)
return map
existingPageId: map[canonicalPageId]
})
} else {
return {
...map,

View File

@@ -48,17 +48,12 @@ export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
// the page title, slug, etc.
const navigationLinkRecordMaps = await getNavigationLinkPages()
const preLength = Object.keys(recordMap.block).length
if (navigationLinkRecordMaps?.length) {
recordMap = navigationLinkRecordMaps.reduce(
(map, navigationLinkRecordMap) =>
mergeRecordMaps(map, navigationLinkRecordMap),
recordMap
)
const postLength = Object.keys(recordMap.block).length
console.log('BLOCKS', { preLength, postLength })
}
}