Skip to content

Commit 990a959

Browse files
committed
Use Gatsby SiteMetadata for plausible domain and src
1 parent 083b2e8 commit 990a959

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/gatsby-theme-iterative/gatsby-config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ module.exports = ({
171171
}
172172
],
173173
siteMetadata: {
174-
author: '',
175-
siteUrl: '',
176-
titleTemplate: '',
177-
plausibleSrc: 'https://plausible.io/js/plausible.outbound-links.js',
178-
plausibleDomain: ''
174+
plausibleSrc: 'https://plausible.io/js/plausible.outbound-links.js'
179175
}
180176
})

packages/gatsby-theme-iterative/gatsby-node.js

+10
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ exports.createSchemaCustomization = async api => {
5757
name: 'String!',
5858
match: '[String]'
5959
}
60+
}),
61+
buildObjectType({
62+
name: 'SiteSiteMetadata',
63+
fields: {
64+
author: 'String',
65+
siteUrl: 'String',
66+
titleTemplate: 'String',
67+
plausibleSrc: 'String',
68+
plausibleDomain: 'String'
69+
}
6070
})
6171
])
6272
}

0 commit comments

Comments
 (0)