Rename storage directory
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AboutHeaderWrap } from './style';
|
||||
import siteConfig from "storage/site";
|
||||
import siteConfig from "content/site";
|
||||
|
||||
const AboutHeader = () => (
|
||||
<AboutHeaderWrap>
|
||||
|
@@ -21,7 +21,7 @@ import { faBars } from '@fortawesome/free-solid-svg-icons'
|
||||
import { getFacebookShareUrl } from 'lib/url';
|
||||
import { ShareIcon } from 'components/share-icon';
|
||||
import { getRedditShareUrl, getTwitterShareUrl } from 'lib/url';
|
||||
import siteConfig from "storage/site";
|
||||
import siteConfig from "content/site";
|
||||
import MdRenderer from 'components/md-renderer';
|
||||
|
||||
const DetailedRoadmap = ({ roadmap }) => {
|
||||
@@ -61,7 +61,7 @@ const DetailedRoadmap = ({ roadmap }) => {
|
||||
});
|
||||
|
||||
const filePath = currentPage.path.replace(/^\//, '');
|
||||
const RoadmapContent = require(`../../storage/${filePath}`).default;
|
||||
const RoadmapContent = require(`../../content/${filePath}`).default;
|
||||
|
||||
return (
|
||||
<SummaryContainer>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { FaqContainer } from './style';
|
||||
import MdRenderer from 'components/md-renderer';
|
||||
|
||||
const AboutPage = require(`../../storage/pages/about.md`).default;
|
||||
const AboutPage = require(`../../content/pages/about.md`).default;
|
||||
|
||||
const FaqList = () => (
|
||||
<FaqContainer className='border-top bg-light'>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { FeaturedContentWrap } from './style';
|
||||
import roadmaps from 'storage/roadmaps';
|
||||
import roadmaps from 'content/roadmaps';
|
||||
import FeaturedRoadmap from 'components/featured-roadmap';
|
||||
|
||||
const FeaturedRoadmaps = () => (
|
||||
|
@@ -3,7 +3,7 @@ import SharePage from 'components/share-page';
|
||||
import { GuideBodyWrap } from './style';
|
||||
|
||||
const GuideBody = ({ guide }) => {
|
||||
const GuideContent = require(`../../storage/guides/${guide.fileName}.md`).default;
|
||||
const GuideContent = require(`../../content/guides/${guide.fileName}.md`).default;
|
||||
return (
|
||||
<GuideBodyWrap>
|
||||
<MdRenderer>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import NextHead from 'next/head';
|
||||
import siteConfig from 'storage/site';
|
||||
import siteConfig from 'content/site';
|
||||
|
||||
const prepareTitle = (givenTitle) => {
|
||||
givenTitle = givenTitle || siteConfig.title;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import Link from 'next/link';
|
||||
import siteConfig from "storage/site";
|
||||
import siteConfig from "content/site";
|
||||
import { FooterWrap } from './style.js'
|
||||
|
||||
const PageFooter = () => (
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faArrowLeft, faClock, faEnvelope, faHandshake } from '@fortawesome/free-solid-svg-icons';
|
||||
import { BadgeLink, BadgesList, DarkBadge, PrimaryBadge, SecondaryBadge } from 'components/badges';
|
||||
import siteConfig from "storage/site";
|
||||
import siteConfig from "content/site";
|
||||
import { Description, Header, Title, VersionList } from './style';
|
||||
|
||||
const RoadmapHeader = ({ roadmap }) => (
|
||||
|
@@ -17,7 +17,7 @@ const RoadmapSummary = ({ roadmap }) => {
|
||||
}
|
||||
|
||||
const filePath = roadmap.path.replace(/^\//, '');
|
||||
const RoadmapContent = require(`../../storage/${filePath}`).default;
|
||||
const RoadmapContent = require(`../../content/${filePath}`).default;
|
||||
|
||||
return (
|
||||
<SummaryContainer>
|
||||
|
@@ -11,6 +11,7 @@ const SiteNav = () => (
|
||||
<div className='nav-links'>
|
||||
<a href='/roadmaps'>Roadmaps</a>
|
||||
<a href='/guides'>Guides</a>
|
||||
<a href='/jobs'>Jobs</a>
|
||||
<a href='/about' className='d-none d-md-inline-block'>FAQ</a>
|
||||
<a href='/signup' className='signup'>Subscribe</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user