diff --git a/pages/[...slug].js b/pages/[...slug].js index f144467d..6977115c 100644 --- a/pages/[...slug].js +++ b/pages/[...slug].js @@ -5,6 +5,7 @@ import Seo from "@/components/elements/seo" import { useRouter } from "next/router" import Layout from "../components/layout" import { getLocalizedPaths } from "utils/localize" +import Head from "next/head" // The file is called [[...slug]].js because we're using Next's // optional catch all routes feature. See the related docs: @@ -14,6 +15,7 @@ const DynamicPage = ({ sections, metadata, preview, + title, global, pageContext }) => { @@ -31,6 +33,10 @@ const DynamicPage = ({ return (
+ {Boolean(title) && + { title } | RENCI.org + } + {/* Add meta tags for SEO*/} {/* Display content sections */} @@ -81,6 +87,7 @@ export async function getServerSideProps(context) { sections: contentSections, metadata: pageData.metaData, global: globalLocale, + title: pageData.title, pageContext: { ...pageContext, // localizedPaths,