mirror of
https://github.com/MaggieAppleton/digital-gardeners.git
synced 2025-12-14 09:08:43 +01:00
switched to mdx
This commit is contained in:
parent
1d7be78e38
commit
67b393a1f0
12 changed files with 16 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ import Container from "../components/Container";
|
|||
import Layout from "../components/Layout";
|
||||
import Sidemenu from "../components/Sidemenu";
|
||||
import Card from "../components/Card";
|
||||
import { gardensFilePath, GARDENS_PATH } from "../utils/mdUtils";
|
||||
import { gardenFilePath, GARDENS_PATH } from "../utils/mdxUtils";
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
export default function Index({ posts }) {
|
||||
|
|
@ -65,7 +65,7 @@ export default function Index({ posts }) {
|
|||
}
|
||||
|
||||
export function getStaticProps() {
|
||||
const posts = gardensFilePath.map((filePath) => {
|
||||
const posts = gardenFilePath.map((filePath) => {
|
||||
const source = fs.readFileSync(path.join(GARDENS_PATH, filePath));
|
||||
const { content, data } = matter(source);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue