change IndexPage meta description | change copyright

This commit is contained in:
Dawid Wysokiński 2020-07-26 12:18:54 +02:00
parent cf48043fa0
commit d72bde0485
4 changed files with 8 additions and 6 deletions

View File

@ -3,12 +3,13 @@ const siteUrl = "https://dcbot.tribalwarshelp.com";
module.exports = {
siteMetadata: {
title: `TWHelp Discord Bot`,
description: `Discord bot for online game Tribalwars. | Notifications about lost/conquered village in near real-time.`,
description: `Discord bot for online game Tribalwars. | Real-time notifications about lost/conquered village.`,
siteUrl,
twhelpUrl: "https://tribalwarshelp.com",
botInviteUrl:
"https://discord.com/oauth2/authorize?client_id=707859810900508703&scope=bot&permissions=8",
languages: ["en", "pl"],
author: "Dawid Wysokiński",
},
plugins: [
`gatsby-plugin-react-helmet`,

View File

@ -25,7 +25,7 @@ const locales = {
},
};
function Footer({ title, lang }) {
function Footer({ author, lang }) {
const classes = useStyles();
const translations = locales[lang] || locales["en"];
@ -38,7 +38,7 @@ function Footer({ title, lang }) {
<Link color="secondary" href="https://svgbackgrounds.com">
svgbackgrounds.com
</Link>
. <br /> &copy; {new Date().getFullYear()} {title}
. <br /> &copy; {new Date().getFullYear()} {author}
</Typography>
</Toolbar>
</Container>
@ -47,7 +47,7 @@ function Footer({ title, lang }) {
}
Footer.propTypes = {
title: PropTypes.string.isRequired,
author: PropTypes.string.isRequired,
lang: PropTypes.string.isRequired,
};

View File

@ -37,6 +37,7 @@ const Layout = ({
title
twhelpUrl
languages
author
}
}
}
@ -58,7 +59,7 @@ const Layout = ({
>
<div className={classes.mainChild}>{children}</div>
</main>
{showFooter && <Footer title={site.siteMetadata.title} lang={lang} />}
{showFooter && <Footer author={site.siteMetadata.author} lang={lang} />}
<CssBaseline />
</Fragment>
);

View File

@ -1,7 +1,7 @@
export default {
title: "Home",
description:
"Discord bot for online game Tribalwars. | Notifications about lost/conquered village in near real-time.",
"Discord bot for online game Tribalwars. | Real-time notifications about lost/conquered village.",
header: {
title: "Observe your tribe ennoblements!",
description: