mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-29 10:16:53 +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 = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
title: `KevinK.dev`,
|
title: extConfig.siteName,
|
||||||
author: `@Unkn0wnKevin`,
|
author: extConfig.siteAuthor,
|
||||||
siteUrl: `https://kevink.dev`,
|
siteUrl: extConfig.siteURL,
|
||||||
|
keywords: extConfig.siteKeywords
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
`gatsby-plugin-sharp`,
|
`gatsby-plugin-sharp`,
|
||||||
|
@ -17,13 +20,13 @@ module.exports = {
|
||||||
{
|
{
|
||||||
resolve: `gatsby-plugin-manifest`,
|
resolve: `gatsby-plugin-manifest`,
|
||||||
options: {
|
options: {
|
||||||
name: `KevinK.dev`,
|
name: extConfig.siteName,
|
||||||
short_name: `KevinK.dev`,
|
short_name: extConfig.siteName,
|
||||||
start_url: `/`,
|
start_url: `/`,
|
||||||
background_color: `#000710`,
|
background_color: `#000710`,
|
||||||
theme_color: `#000710`,
|
theme_color: `#000710`,
|
||||||
display: `minimal-ui`,
|
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',
|
cache_busting_mode: 'none',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -43,7 +46,7 @@ module.exports = {
|
||||||
resolve: `gatsby-plugin-react-i18next`,
|
resolve: `gatsby-plugin-react-i18next`,
|
||||||
options: {
|
options: {
|
||||||
path: `${__dirname}/locales`,
|
path: `${__dirname}/locales`,
|
||||||
languages: [`en`, `de`],
|
languages: extConfig.languages,
|
||||||
defaultLanguage: null,
|
defaultLanguage: null,
|
||||||
siteURL: "https://kevink.dev",
|
siteURL: "https://kevink.dev",
|
||||||
i18nextOptions: {
|
i18nextOptions: {
|
||||||
|
@ -57,7 +60,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
matchPath: '/:lang/projects/:urlname',
|
matchPath: '/:lang/projects/:urlname',
|
||||||
getLanguageFromPath: true,
|
getLanguageFromPath: true,
|
||||||
excludeLanguages: ['en', 'de']
|
excludeLanguages: extConfig.languages
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ function SEO({ description, meta, title }) {
|
||||||
siteMetadata {
|
siteMetadata {
|
||||||
title
|
title
|
||||||
author
|
author
|
||||||
|
keywords
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +61,7 @@ function SEO({ description, meta, title }) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "keywords",
|
name: "keywords",
|
||||||
content: "Kevin Kandlbinder, Kevin, Kandlbinder, Web, Web Developer, Developer, JavaScript, PHP, Java, Photos, Fotos"
|
content: site.siteMetadata.keywords
|
||||||
}
|
}
|
||||||
].concat(meta)}
|
].concat(meta)}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Reference in a new issue