mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-28 13:24:45 +00:00
refactor: ♻️ Simplifies gatsby-config
This commit is contained in:
1 file changed
+1
-16
+1
-16
@@ -1,16 +1 @@
|
|||||||
const fs = require('fs')
|
module.exports = { plugins: [`@marscollective/gatsby-theme-link-free`] }
|
||||||
const yaml = require('js-yaml')
|
|
||||||
const metadata = yaml.safeLoad(
|
|
||||||
fs.readFileSync('./content/metadata.yaml', 'utf8')
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
plugins: [
|
|
||||||
{
|
|
||||||
resolve: `@marscollective/gatsby-theme-link-free`,
|
|
||||||
options: {
|
|
||||||
metadata
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user