Update manifest theme color

This commit is contained in:
Kevin Kandlbinder 2021-07-25 14:06:49 +00:00 committed by GitHub
parent d9b538312a
commit 41b729df1f

View file

@ -1,113 +1,113 @@
/* eslint-disable no-undef */ /* eslint-disable no-undef */
const extConfig = require("./config"); const extConfig = require("./config");
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
title: extConfig.siteName, title: extConfig.siteName,
author: extConfig.siteAuthor, author: extConfig.siteAuthor,
siteUrl: extConfig.siteURL, siteUrl: extConfig.siteURL,
keywords: extConfig.siteKeywords, keywords: extConfig.siteKeywords,
payPalMail: extConfig.payPalMail, payPalMail: extConfig.payPalMail,
contactEmail: extConfig.contactEmail, contactEmail: extConfig.contactEmail,
contactPhone: extConfig.contactPhone, contactPhone: extConfig.contactPhone,
mapsLink: extConfig.mapsLink, mapsLink: extConfig.mapsLink,
contactTwitter: extConfig.contactTwitter, contactTwitter: extConfig.contactTwitter,
contactGitHub: extConfig.contactGitHub, contactGitHub: extConfig.contactGitHub,
contactMastodon: extConfig.contactMastodon, contactMastodon: extConfig.contactMastodon,
contactMastodonHref: extConfig.contactMastodonHref, contactMastodonHref: extConfig.contactMastodonHref,
}, },
assetPrefix: "/assets", assetPrefix: "/assets",
plugins: [ plugins: [
`gatsby-plugin-eslint`, `gatsby-plugin-eslint`,
{ {
resolve: "gatsby-plugin-asset-path", resolve: "gatsby-plugin-asset-path",
}, },
`gatsby-plugin-sharp`, `gatsby-plugin-sharp`,
`gatsby-transformer-sharp`, `gatsby-transformer-sharp`,
`gatsby-transformer-json`, `gatsby-transformer-json`,
{ {
resolve: `gatsby-source-filesystem`, resolve: `gatsby-source-filesystem`,
options: { options: {
path: `${__dirname}/content/textblocks`, path: `${__dirname}/content/textblocks`,
name: `textblocks`, name: `textblocks`,
}, },
}, },
{ {
resolve: `gatsby-source-filesystem`, resolve: `gatsby-source-filesystem`,
options: { options: {
path: `${__dirname}/content/projectTextblocks`, path: `${__dirname}/content/projectTextblocks`,
name: `projectTextblocks`, name: `projectTextblocks`,
}, },
}, },
"gatsby-plugin-mdx", "gatsby-plugin-mdx",
{ {
resolve: `gatsby-source-filesystem`, resolve: `gatsby-source-filesystem`,
options: { options: {
path: `./content/`, path: `./content/`,
}, },
}, },
{ {
resolve: `gatsby-source-filesystem`, resolve: `gatsby-source-filesystem`,
options: { options: {
path: `${__dirname}/locales`, path: `${__dirname}/locales`,
name: `locale`, name: `locale`,
}, },
}, },
`gatsby-plugin-sass`, `gatsby-plugin-sass`,
{ {
resolve: `gatsby-plugin-manifest`, resolve: `gatsby-plugin-manifest`,
options: { options: {
name: extConfig.siteName, name: extConfig.siteName,
short_name: extConfig.siteName, short_name: extConfig.siteName,
start_url: `/`, start_url: `/`,
background_color: `#000710`, background_color: `#000710`,
theme_color: `#000710`, theme_color: `#e5502b`,
display: `minimal-ui`, display: `minimal-ui`,
icon: extConfig.iconPath, // 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",
}, },
}, },
`gatsby-plugin-robots-txt`, `gatsby-plugin-robots-txt`,
{ {
resolve: `gatsby-plugin-offline`, resolve: `gatsby-plugin-offline`,
options: { options: {
precachePages: [ precachePages: [
"/", "/",
"/en", "/en",
"/en/projects", "/en/projects",
"/de", "/de",
"/de/projects", "/de/projects",
], ],
workboxConfig: { workboxConfig: {
globPatterns: ["**/*"], globPatterns: ["**/*"],
}, },
}, },
}, },
`gatsby-plugin-sitemap`, `gatsby-plugin-sitemap`,
`gatsby-plugin-react-helmet`, `gatsby-plugin-react-helmet`,
{ {
resolve: `gatsby-plugin-react-i18next`, resolve: `gatsby-plugin-react-i18next`,
options: { options: {
localeJsonSourceName: `locale`, localeJsonSourceName: `locale`,
languages: extConfig.languages, languages: extConfig.languages,
defaultLanguage: `en`, defaultLanguage: `en`,
generateDefaultLanguagePage: true, generateDefaultLanguagePage: true,
siteUrl: extConfig.siteURL, siteUrl: extConfig.siteURL,
i18nextOptions: { i18nextOptions: {
interpolation: { interpolation: {
escapeValue: false, // not needed for react as it escapes by default escapeValue: false, // not needed for react as it escapes by default
}, },
keySeparator: false, keySeparator: false,
nsSeparator: false, nsSeparator: false,
}, },
pages: [ pages: [
{ {
matchPath: "/:lang/projects/:urlname", matchPath: "/:lang/projects/:urlname",
getLanguageFromPath: true, getLanguageFromPath: true,
excludeLanguages: extConfig.languages, excludeLanguages: extConfig.languages,
}, },
], ],
}, },
}, },
], ],
}; };