From 9884782386f80b8cafbf03b4d0902545c38861a0 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 31 Oct 2017 17:20:12 +0100 Subject: [PATCH] Move config.json --- src/components/Home.js | 2 +- src/utils/compiler.js | 2 +- src/{static/config => utils}/config.json | 3 ++- src/utils/scanner.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename src/{static/config => utils}/config.json (91%) diff --git a/src/components/Home.js b/src/components/Home.js index 3a96a66..578790b 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; -import config from '../static/config/config.json'; +import config from '../utils/config.json'; export default class Home extends Component { diff --git a/src/utils/compiler.js b/src/utils/compiler.js index e88492c..6e051b5 100644 --- a/src/utils/compiler.js +++ b/src/utils/compiler.js @@ -5,7 +5,7 @@ const moment = require('moment'); const jsonfile = require('jsonfile'); const async = require('async'); const fm = require('front-matter'); -const config = require('../static/config/config.json'); +const config = require('../utils/config.json'); function render(file) { const md = new MarkdownIt(); diff --git a/src/static/config/config.json b/src/utils/config.json similarity index 91% rename from src/static/config/config.json rename to src/utils/config.json index 72fcf0b..41a85ae 100644 --- a/src/static/config/config.json +++ b/src/utils/config.json @@ -7,8 +7,9 @@ "name": "Matúš Námešný", "email": "matus@namesny.com", "social": { - "github": "https://github.com/LordMathis", "twitter": "https://twitter.com/matus_n", + "github": "https://github.com/LordMathis", + "codepen": "https://codepen.io/LordMathis/", "linkedin": "https://www.linkedin.com/in/mat%C3%BA%C5%A1-n%C3%A1me%C5%A1n%C3%BD-3903b6128/" }, "contentPath": "./content", diff --git a/src/utils/scanner.js b/src/utils/scanner.js index a0e7703..c91b878 100644 --- a/src/utils/scanner.js +++ b/src/utils/scanner.js @@ -2,7 +2,7 @@ const fs = require('fs'); const path = require('path'); const async = require('async'); const Compiler = require('./compiler'); -const config = require('../static/config/config.json'); +const config = require('../utils/config.json'); const data = require('./data.json'); module.exports = function() {