Rename layout.js to Capitalize file name (Layout)
Removed unused _post.js
This commit is contained in:
parent
bfea43bb3e
commit
13e6cca5a4
17
lib/_post.js
17
lib/_post.js
@ -1,17 +0,0 @@
|
||||
import path from 'path'
|
||||
import matter from 'gray-matter'
|
||||
import fs from "fs"
|
||||
import { Node } from "./node"
|
||||
|
||||
|
||||
var remark = require('remark')
|
||||
const unified = require('unified')
|
||||
const markdown = require('remark-parse')
|
||||
var guide = require('remark-preset-lint-markdown-style-guide')
|
||||
var html = require('remark-html')
|
||||
var report = require('vfile-reporter')
|
||||
|
||||
const postsDirectory = path.join(process.cwd(), 'posts')
|
||||
const isFile = fileName => {
|
||||
return fs.lstatSync(fileName).isFile()
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import Layout from "../components/layout";
|
||||
import Layout from "../components/Layout";
|
||||
import {getSinglePost, getDirectoryData, convertObject, getFlattenArray, getGraphData} from "../lib/utils";
|
||||
import FolderTree from "../components/FolderTree";
|
||||
import MDContainer from "../components/MDContainer";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Head from "next/head";
|
||||
import Layout from "../../components/layout";
|
||||
import Layout from "../../components/Layout";
|
||||
import {
|
||||
getAllSlugs,
|
||||
getSinglePost,
|
||||
|
Loading…
Reference in New Issue
Block a user