* [site,seo][xs]: add custom _document with lang prop, add description to meta tags, make title larger * [site,seo][xs]: add apple touch icon, add alt props to images * [site,seo][xs]: add icon to default seo * [site,seo][s]: implement next-sitemap * [site,seo][s]: review page titles * Rebuild package-lock.json files * Regenerate package-lock
21 lines
641 B
TypeScript
21 lines
641 B
TypeScript
import { MDXRemote } from 'next-mdx-remote';
|
|
import { NextSeo } from 'next-seo';
|
|
import layouts from 'layouts';
|
|
import DocsPagination from './DocsPagination';
|
|
import { Hero } from "@portaljs/core";
|
|
|
|
export default function MDXPage({ source, frontMatter }) {
|
|
const Layout = ({ children }) => {
|
|
const layoutName = frontMatter?.layout || 'default';
|
|
const LayoutComponent = layouts[layoutName];
|
|
|
|
return <LayoutComponent {...frontMatter}>{children}</LayoutComponent>;
|
|
};
|
|
|
|
return (
|
|
<Layout>
|
|
<MDXRemote {...source} components={{ DocsPagination, NextSeo, Hero }} />
|
|
</Layout>
|
|
);
|
|
}
|