Browse Source

feat: move bloglist to /posts

restructure
Garrit Franke 10 months 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 BlogList from "../components/BlogList";
import Layout from "../../components/Layout";
import BlogList from "../../components/BlogList";
import matter from "gray-matter";
const Index = (props) => {
@ -35,7 +35,7 @@ export async function getStaticProps() {
};
});
return data;
})(require.context("../content/posts", true, /\.md$/));
})(require.context("../../content/posts", true, /\.md$/));
return {
props: {
Loading…
Cancel
Save