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 = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
title: `TWHelp Discord Bot`,
|
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,
|
siteUrl,
|
||||||
twhelpUrl: "https://tribalwarshelp.com",
|
twhelpUrl: "https://tribalwarshelp.com",
|
||||||
botInviteUrl:
|
botInviteUrl:
|
||||||
"https://discord.com/oauth2/authorize?client_id=707859810900508703&scope=bot&permissions=8",
|
"https://discord.com/oauth2/authorize?client_id=707859810900508703&scope=bot&permissions=8",
|
||||||
languages: ["en", "pl"],
|
languages: ["en", "pl"],
|
||||||
|
author: "Dawid Wysokiński",
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
`gatsby-plugin-react-helmet`,
|
`gatsby-plugin-react-helmet`,
|
||||||
|
|
|
@ -25,7 +25,7 @@ const locales = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
function Footer({ title, lang }) {
|
function Footer({ author, lang }) {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const translations = locales[lang] || locales["en"];
|
const translations = locales[lang] || locales["en"];
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ function Footer({ title, lang }) {
|
||||||
<Link color="secondary" href="https://svgbackgrounds.com">
|
<Link color="secondary" href="https://svgbackgrounds.com">
|
||||||
svgbackgrounds.com
|
svgbackgrounds.com
|
||||||
</Link>
|
</Link>
|
||||||
. <br /> © {new Date().getFullYear()} {title}
|
. <br /> © {new Date().getFullYear()} {author}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -47,7 +47,7 @@ function Footer({ title, lang }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Footer.propTypes = {
|
Footer.propTypes = {
|
||||||
title: PropTypes.string.isRequired,
|
author: PropTypes.string.isRequired,
|
||||||
lang: PropTypes.string.isRequired,
|
lang: PropTypes.string.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ const Layout = ({
|
||||||
title
|
title
|
||||||
twhelpUrl
|
twhelpUrl
|
||||||
languages
|
languages
|
||||||
|
author
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,7 +59,7 @@ const Layout = ({
|
||||||
>
|
>
|
||||||
<div className={classes.mainChild}>{children}</div>
|
<div className={classes.mainChild}>{children}</div>
|
||||||
</main>
|
</main>
|
||||||
{showFooter && <Footer title={site.siteMetadata.title} lang={lang} />}
|
{showFooter && <Footer author={site.siteMetadata.author} lang={lang} />}
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
export default {
|
export default {
|
||||||
title: "Home",
|
title: "Home",
|
||||||
description:
|
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: {
|
header: {
|
||||||
title: "Observe your tribe ennoblements!",
|
title: "Observe your tribe ennoblements!",
|
||||||
description:
|
description:
|
||||||
|
|
Reference in New Issue
Block a user