mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 09:46:52 +02:00
Delegate site-config to config.js
This commit is contained in:
parent
fb00463fb8
commit
186ebe2caa
3 changed files with 21 additions and 9 deletions
8
config.js
Normal file
8
config.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
"siteName": "KevinK.dev",
|
||||
"siteAuthor": "@Unkn0wnKevin",
|
||||
"siteURL": "https://kevink.dev",
|
||||
"siteKeywords": "Kevin Kandlbinder, Kevin, Kandlbinder, Web, Web Developer, Developer, JavaScript, PHP, Java, Photos, Fotos",
|
||||
"iconPath": "src/images/fullbglogo@10x.png",
|
||||
"languages": ["en", "de"]
|
||||
};
|
|
@ -1,8 +1,11 @@
|
|||
const extConfig = require("./config")
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: `KevinK.dev`,
|
||||
author: `@Unkn0wnKevin`,
|
||||
siteUrl: `https://kevink.dev`,
|
||||
title: extConfig.siteName,
|
||||
author: extConfig.siteAuthor,
|
||||
siteUrl: extConfig.siteURL,
|
||||
keywords: extConfig.siteKeywords
|
||||
},
|
||||
plugins: [
|
||||
`gatsby-plugin-sharp`,
|
||||
|
@ -17,13 +20,13 @@ module.exports = {
|
|||
{
|
||||
resolve: `gatsby-plugin-manifest`,
|
||||
options: {
|
||||
name: `KevinK.dev`,
|
||||
short_name: `KevinK.dev`,
|
||||
name: extConfig.siteName,
|
||||
short_name: extConfig.siteName,
|
||||
start_url: `/`,
|
||||
background_color: `#000710`,
|
||||
theme_color: `#000710`,
|
||||
display: `minimal-ui`,
|
||||
icon: `src/images/fullbglogo@10x.png`, // This path is relative to the root of the site.
|
||||
icon: extConfig.iconPath, // This path is relative to the root of the site.
|
||||
cache_busting_mode: 'none',
|
||||
},
|
||||
},
|
||||
|
@ -43,7 +46,7 @@ module.exports = {
|
|||
resolve: `gatsby-plugin-react-i18next`,
|
||||
options: {
|
||||
path: `${__dirname}/locales`,
|
||||
languages: [`en`, `de`],
|
||||
languages: extConfig.languages,
|
||||
defaultLanguage: null,
|
||||
siteURL: "https://kevink.dev",
|
||||
i18nextOptions: {
|
||||
|
@ -57,7 +60,7 @@ module.exports = {
|
|||
{
|
||||
matchPath: '/:lang/projects/:urlname',
|
||||
getLanguageFromPath: true,
|
||||
excludeLanguages: ['en', 'de']
|
||||
excludeLanguages: extConfig.languages
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ function SEO({ description, meta, title }) {
|
|||
siteMetadata {
|
||||
title
|
||||
author
|
||||
keywords
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +61,7 @@ function SEO({ description, meta, title }) {
|
|||
},
|
||||
{
|
||||
name: "keywords",
|
||||
content: "Kevin Kandlbinder, Kevin, Kandlbinder, Web, Web Developer, Developer, JavaScript, PHP, Java, Photos, Fotos"
|
||||
content: site.siteMetadata.keywords
|
||||
}
|
||||
].concat(meta)}
|
||||
>
|
||||
|
|
Loading…
Add table
Reference in a new issue