Skip to content

Commit 4a040eb

Browse files
Fixed
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent ad8bb9e commit 4a040eb

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

gatsby-node.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,24 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
803803
];
804804

805805
components.forEach((name) => {
806+
// Skip guidance and code pages for icons component
807+
if (name === "icons") {
808+
const pagePath = `/projects/sistent/components/${name}`;
809+
const componentPath = `./src/sections/Projects/Sistent/components/${name}/index.js`;
810+
if (fs.existsSync(path.resolve(componentPath))) {
811+
try {
812+
createPage({
813+
path: pagePath,
814+
component: require.resolve(componentPath),
815+
});
816+
} catch (error) {
817+
console.error(`Error creating page for "${pagePath}":`, error);
818+
}
819+
}
820+
return;
821+
}
822+
823+
// For all other components, process all page types
806824
pageTypes.forEach(({ suffix, file }) => {
807825
const pagePath = `/projects/sistent/components/${name}${suffix}`;
808826
const componentPath = `./src/sections/Projects/Sistent/components/${name}/${file}`;

0 commit comments

Comments
 (0)