[md][datahub] updated links from portaljs.org to portaljs.com

This commit is contained in:
muhammad-hassan11
2024-12-23 21:57:09 +05:00
parent ad5a176e85
commit 8487175f01
22 changed files with 36 additions and 36 deletions

View File

@@ -12,7 +12,7 @@ export default function JSONLD({
return <></>;
}
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://portaljs.org';
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://portaljs.com';
const pageUrl = `${baseUrl}/${meta.urlPath}`;
const imageMatches = source.match(

View File

@@ -26,7 +26,7 @@ function useTableOfContents(tableOfContents) {
})
.filter((el) => !!el);
}, []);
console.log(getHeadings,"getheadings");
useEffect(() => {
if (tableOfContents.length === 0) return;
const headings = getHeadings(tableOfContents);
@@ -67,6 +67,7 @@ export default function Layout({
sidebarTree?: [];
isHomePage?: boolean;
}) {
console.log(children)
// const { toc } = children.props;
const { theme, setTheme } = useTheme();
@@ -81,7 +82,6 @@ export default function Layout({
}
return section.children.findIndex(isActive) > -1;
}
return (
<>
{title && <NextSeo title={title} description={description} />}