mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-16 22:46:04 +01:00
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:
@@ -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
16
content/metadata.yaml
Normal 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: ''
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user