1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 21:51:50 +02:00

switch to gatsby-plugin-manifest for web manifest and favicon generation

This commit is contained in:
Matthias Kretschmann 2019-06-10 19:21:51 +02:00
parent 599a5e5a4f
commit 58a80a50e9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 10 additions and 31 deletions

View File

@ -2,7 +2,7 @@ const path = require('path')
const fs = require('fs') const fs = require('fs')
const yaml = require('js-yaml') const yaml = require('js-yaml')
const meta = yaml.load(fs.readFileSync('./content/meta.yml', 'utf8')) const meta = yaml.load(fs.readFileSync('./content/meta.yml', 'utf8'))
const { title, description, url, matomoSite, matomoUrl } = meta[0] const { title, url, matomoSite, matomoUrl } = meta[0]
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
@ -66,37 +66,16 @@ module.exports = {
} }
}, },
{ {
resolve: 'gatsby-plugin-favicon', resolve: 'gatsby-plugin-manifest',
options: { options: {
logo: './src/images/favicon.png', name: title.toLowerCase(),
// WebApp Manifest Configuration
appName: title.toLowerCase(),
appDescription: description,
developerName: null,
developerURL: null,
dir: 'auto',
lang: 'en-US',
background: '#e7eef4',
theme_color: '#88bec8',
display: 'minimal-ui',
orientation: 'any',
start_url: '/?homescreen=1',
short_name: 'mk', short_name: 'mk',
version: '1.0', start_url: '/',
background_color: '#e7eef4',
icons: { theme_color: '#88bec8',
android: true, icon: 'src/images/favicon.png',
appleIcon: true, display: 'minimal-ui',
appleStartup: true, cache_busting_mode: 'name'
coast: false,
favicons: true,
firefox: true,
opengraph: false,
twitter: false,
yandex: false,
windows: false
}
} }
}, },
'gatsby-plugin-react-helmet', 'gatsby-plugin-react-helmet',

View File

@ -29,7 +29,7 @@
"file-saver": "^2.0.1", "file-saver": "^2.0.1",
"gatsby": "^2.8.6", "gatsby": "^2.8.6",
"gatsby-image": "^2.1.2", "gatsby-image": "^2.1.2",
"gatsby-plugin-favicon": "^3.1.6", "gatsby-plugin-manifest": "^2.1.1",
"gatsby-plugin-matomo": "^0.7.1", "gatsby-plugin-matomo": "^0.7.1",
"gatsby-plugin-offline": "^2.1.1", "gatsby-plugin-offline": "^2.1.1",
"gatsby-plugin-react-helmet": "^3.0.12", "gatsby-plugin-react-helmet": "^3.0.12",