chore: render tab title correctly

This commit is contained in:
Sean Norwood 2022-04-07 22:51:40 +00:00
parent 67fec4ae5e
commit 8616959fee

View File

@ -2,6 +2,7 @@ import Head from "next/head";
/** /**
* TODO: Dynamically get the title * TODO: Dynamically get the title
* TODO: NextJS recommended pattern for SEO
*/ */
export const CustomHead = ({ title }: { title?: string }) => { export const CustomHead = ({ title }: { title?: string }) => {
return ( return (
@ -38,11 +39,9 @@ export const CustomHead = ({ title }: { title?: string }) => {
<meta name="msapplication-TileColor" content="#01202e" /> <meta name="msapplication-TileColor" content="#01202e" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" /> <meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="theme-color" content="#01202e" /> <meta name="theme-color" content="#01202e" />
{/* {% if title %} */}
<title>TA | {{ title }}</title> {title ? <title>TA | {title}</title> : <title>TubeArchivist</title>}
{/* {% else %} */}
<title>TubeArchivist</title>
{/* {% endif %} */}
{/* {% if colors == "dark" %} */} {/* {% if colors == "dark" %} */}
{/* <link rel="stylesheet" href="/css/dark.css" /> */} {/* <link rel="stylesheet" href="/css/dark.css" /> */}
{/* {% else %} */} {/* {% else %} */}