Move config to root folder
This commit is contained in:
parent
9da4832b64
commit
68c7d36521
|
@ -1,6 +1,6 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import config from '../utils/config.json';
|
import config from '../../config.json';
|
||||||
import '../static/stylesheets/globals.scss';
|
import '../static/stylesheets/globals.scss';
|
||||||
import styles from './Home.scss';
|
import styles from './Home.scss';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import config from '../utils/config.json';
|
import config from '../../config.json';
|
||||||
import '../static/stylesheets/globals.scss';
|
import '../static/stylesheets/globals.scss';
|
||||||
import styles from './Navbar.scss';
|
import styles from './Navbar.scss';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ const data = require('./data.json');
|
||||||
const api = require('express').Router();
|
const api = require('express').Router();
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const config = require('./config.json');
|
const config = require('../../config.json');
|
||||||
|
|
||||||
api.get('/blog', (req, res) => {
|
api.get('/blog', (req, res) => {
|
||||||
res.set('Cache-Control', 'no-cache');
|
res.set('Cache-Control', 'no-cache');
|
||||||
|
|
|
@ -5,7 +5,7 @@ const moment = require('moment');
|
||||||
const jsonfile = require('jsonfile');
|
const jsonfile = require('jsonfile');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const fm = require('front-matter');
|
const fm = require('front-matter');
|
||||||
const config = require('../utils/config.json');
|
const config = require('../../config.json');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders file using MarkdownIt
|
* Renders file using MarkdownIt
|
||||||
|
|
|
@ -2,7 +2,7 @@ const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const Compiler = require('./compiler');
|
const Compiler = require('./compiler');
|
||||||
const config = require('./config.json');
|
const config = require('../../config.json');
|
||||||
const data = require('./data.json');
|
const data = require('./data.json');
|
||||||
|
|
||||||
module.exports = function() {
|
module.exports = function() {
|
||||||
|
|
Loading…
Reference in New Issue