change IndexPage meta description | change copyright
This commit is contained in:
parent
cf48043fa0
commit
d72bde0485
|
@ -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`,
|
||||
|
|
|
@ -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 /> © {new Date().getFullYear()} {title}
|
||||
. <br /> © {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,
|
||||
};
|
||||
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in New Issue
Block a user