refactor(client): replace Map's static query with page queries (#55792)

This commit is contained in:
Oliver Eyton-Williams
2024-08-19 13:56:44 +02:00
committed by GitHub
parent 7345989917
commit 8c0b459c2b
8 changed files with 152 additions and 146 deletions
@@ -198,8 +198,7 @@ exports.createSuperBlockIntroPages = function (createPage) {
return function (edge) {
const {
fields: { slug },
frontmatter: { superBlock, certification },
id
frontmatter: { superBlock, certification, title }
} = edge.node;
if (!certification) {
@@ -215,8 +214,9 @@ exports.createSuperBlockIntroPages = function (createPage) {
path: slug,
component: superBlockIntro,
context: {
id,
superBlock
certification,
superBlock,
title
}
});
};