mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
chore: render tab title correctly
This commit is contained in:
parent
67fec4ae5e
commit
8616959fee
@ -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 %} */}
|
||||||
|
Loading…
Reference in New Issue
Block a user