Browse Source

feat: move bloglist to /posts

restructure
Garrit Franke 3 years ago
parent
commit
b669b5ca4b
Signed by: garrit
GPG Key ID: 65586C4DDA55EA2C
  1. 6
      pages/posts/index.js

6
pages/index.js → pages/posts/index.js

@ -1,5 +1,5 @@
import Layout from "../components/Layout"; import Layout from "../../components/Layout";
import BlogList from "../components/BlogList"; import BlogList from "../../components/BlogList";
import matter from "gray-matter"; import matter from "gray-matter";
const Index = (props) => { const Index = (props) => {
@ -35,7 +35,7 @@ export async function getStaticProps() {
}; };
}); });
return data; return data;
})(require.context("../content/posts", true, /\.md$/)); })(require.context("../../content/posts", true, /\.md$/));
return { return {
props: { props: {
Loading…
Cancel
Save