diff options
Diffstat (limited to 'src/pages/mentions-legales.tsx')
| -rw-r--r-- | src/pages/mentions-legales.tsx | 28 | 
1 files changed, 22 insertions, 6 deletions
| diff --git a/src/pages/mentions-legales.tsx b/src/pages/mentions-legales.tsx index 6bb1a55..d8dfe49 100644 --- a/src/pages/mentions-legales.tsx +++ b/src/pages/mentions-legales.tsx @@ -5,9 +5,23 @@ import { NextPageWithLayout } from '@ts/types/app';  import { loadTranslation } from '@utils/helpers/i18n';  import { GetStaticProps, GetStaticPropsContext } from 'next';  import Head from 'next/head'; -import LegalNoticeContent, { meta } from '@content/pages/legal-notice.mdx'; +import LegalNoticeContent, { +  intro, +  meta, +} from '@content/pages/legal-notice.mdx'; +import PostHeader from '@components/PostHeader/PostHeader'; +import { ArticleMeta } from '@ts/types/articles';  const LegalNotice: NextPageWithLayout = () => { +  const dates = { +    publication: meta.publishedOn, +    update: meta.updatedOn, +  }; + +  const pageMeta: ArticleMeta = { +    dates, +  }; +    return (      <>        <Head> @@ -15,11 +29,13 @@ const LegalNotice: NextPageWithLayout = () => {          <meta name="description" content={seo.legalNotice.description} />        </Head>        <article> -        <header> -          <h1>{meta.title}</h1> -        </header> -        <ToC /> -        <LegalNoticeContent /> +        <PostHeader intro={intro} meta={pageMeta} title={meta.title} /> +        <aside> +          <ToC /> +        </aside> +        <div> +          <LegalNoticeContent /> +        </div>        </article>      </>    ); | 
