[examples/learn,docs,#910][m]: add conclusions at the end of each tutorial, add page title to each tutorial page, fix hydration error re modified metadata field

This commit is contained in:
João Demenech
2023-06-02 18:52:56 -03:00
parent 95fd8e72df
commit c80b283201
7 changed files with 25 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import { MDXRemote } from 'next-mdx-remote';
import layouts from 'layouts';
import DocsPagination from './DocsPagination';
import { NextSeo } from 'next-seo';
export default function MDXPage({ source, frontMatter }) {
const Layout = ({ children }) => {
@@ -10,9 +11,10 @@ export default function MDXPage({ source, frontMatter }) {
return <LayoutComponent {...frontMatter}>{children}</LayoutComponent>;
};
return (
<Layout>
<MDXRemote {...source} components={{ DocsPagination }} />
<MDXRemote {...source} components={{ DocsPagination, NextSeo }} />
</Layout>
);
}