fix: 🐛 Data import (#34)

* fix: 🐛 Data imports

* fix: 🐛 Bug in the preview of Link-free metadata

* chore:👷 Adds more scripts

* chore:  Update tests
This commit is contained in:
Daniel Soares
2020-12-14 04:33:31 -03:00
committed by GitHub
parent d38588c27c
commit 189f9c1c96
4 changed files with 24 additions and 22 deletions

View File

@@ -1,20 +0,0 @@
{
"title": "Link free",
"shortTitle": "Link free",
"siteUrl": "https://themes.marscollective.co/link-free",
"description": "",
"lang": "en",
"logo": "logo.png",
"favicon": "favicon.png",
"rounded": "16",
"colors": {
"DEFAULT": "#FAFAFA",
"highlight": "#00d1b7",
"accent": "#262626",
"background": "#262626"
},
"tracking": {
"which": "none",
"id": ""
}
}

16
content/metadata.yaml Normal file
View File

@@ -0,0 +1,16 @@
title: Link free
shortTitle: Link free
siteUrl: https://themes.marscollective.co/link-free
description: ''
lang: en
logo: logo.png
favicon: favicon.png
rounded: '16'
colors:
DEFAULT: '#FAFAFA'
highlight: '#00d1b7'
accent: '#262626'
background: '#262626'
tracking:
which: none
id: ''

View File

@@ -1,4 +1,9 @@
const metadata = require(`./content/metadata.json`)
const fs = require('fs')
const yaml = require('js-yaml')
const metadata = yaml.safeLoad(
fs.readFileSync('./content/metadata.yaml', 'utf8')
)
module.exports = {
plugins: [
{

View File

@@ -6,7 +6,8 @@
"build": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --log-pages",
"dev": "gatsby develop",
"serve": "gatsby serve",
"clean": "gatsby clean"
"clean": "gatsby clean",
"deploy": "yarn build && netlify deploy -p"
},
"dependencies": {
"@marscollective/gatsby-theme-link-free": "^0.1.0",