title on frontpage

This commit is contained in:
Kalle (Sendou)
2020-12-06 18:00:28 +02:00
parent 53a5ad7f64
commit 9bbf8ca239
2 changed files with 8 additions and 2 deletions

View File

@@ -2,10 +2,11 @@ import Head from "next/head";
interface Props {
title: string;
appendSendouInk?: boolean;
}
const MyHead: React.FC<Props> = ({ title }) => {
const pageTitle = `${title} | sendou.ink`;
const MyHead: React.FC<Props> = ({ title, appendSendouInk = true }) => {
const pageTitle = appendSendouInk ? `${title} | sendou.ink` : title;
return (
<Head>
<title>{pageTitle}</title>

View File

@@ -1,5 +1,6 @@
import { Box, Container, Flex, Heading, useColorMode } from "@chakra-ui/react";
import { t, Trans } from "@lingui/macro";
import MyHead from "components/common/MyHead";
import MyLink from "components/common/MyLink";
import { useMyTheme } from "lib/useMyTheme";
import Image from "next/image";
@@ -10,6 +11,10 @@ const Home = () => {
const { colorMode } = useColorMode();
return (
<>
<MyHead
title={`sendou.ink | ${t`Competitive Splatoon Hub`}`}
appendSendouInk={false}
/>
<Box textAlign="center">
<Image
className="rgb"