mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
switch to gatsby-plugin-manifest for web manifest and favicon generation
This commit is contained in:
parent
599a5e5a4f
commit
58a80a50e9
@ -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',
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user