diff --git a/packages/gatsby-plugin-netlify-cms/README.md b/packages/gatsby-plugin-netlify-cms/README.md index cd869e9e19b7e..84f2fd8303277 100644 --- a/packages/gatsby-plugin-netlify-cms/README.md +++ b/packages/gatsby-plugin-netlify-cms/README.md @@ -171,6 +171,13 @@ Customize the path to Netlify CMS on your Gatsby site. Customize the value of the `title` tag in your CMS HTML (shows in the browser bar). +### `htmlFavicon` + +(_optional_, type: `string`, default: `""`) + +Customize the value of the `favicon` tag in your CMS HTML (shows in the browser +bar). + ## Example Here is the plugin with example values for all options (note that no option is @@ -185,6 +192,7 @@ plugins: [ enableIdentityWidget: true, publicPath: `admin`, htmlTitle: `Content Manager`, + htmlFavicon: `path/to/favicon`, }, }, ] diff --git a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js index bd805360bb81c..6d3c49385020b 100644 --- a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js +++ b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js @@ -55,6 +55,7 @@ exports.onCreateWebpackConfig = ( publicPath = `admin`, enableIdentityWidget = true, htmlTitle = `Content Manager`, + htmlFavicon = ``, manualInit = false, } ) => { @@ -135,6 +136,7 @@ exports.onCreateWebpackConfig = ( */ new HtmlWebpackPlugin({ title: htmlTitle, + favicon: htmlFavicon, chunks: [`cms`], excludeAssets: [/cms.css/], }),