mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-16 22:46:04 +01:00
refactor: ♻️ Simplifies gatsby-config
This commit is contained in:
@@ -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