Rename layout.js to Capitalize file name (Layout)

Removed unused _post.js
This commit is contained in:
Tuan Cao 2022-04-18 09:09:58 +07:00
parent bfea43bb3e
commit 13e6cca5a4
4 changed files with 2 additions and 19 deletions

View File

@ -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()
}

View File

@ -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";

View File

@ -1,5 +1,5 @@
import Head from "next/head";
import Layout from "../../components/layout";
import Layout from "../../components/Layout";
import {
getAllSlugs,
getSinglePost,