fixed slug paths

This commit is contained in:
Maggie Appleton 2021-09-06 15:41:00 +01:00
parent ee405f2f21
commit 4716d551bf
3 changed files with 7 additions and 7 deletions

View file

@ -17,8 +17,8 @@ export default function Card({ post }) {
}}
>
<Link
as={`/posts/${post.filePath.replace(/\.mdx?$/, "")}`}
href={`/posts/[slug]`}
as={`${post.filePath.replace(/\.mdx?$/, "")}`}
href={`[slug]`}
>
<a>
{post.data.image && (

View file

@ -7,8 +7,8 @@ import Head from "next/head";
import Link from "next/link";
import Image from "next/image";
import path from "path";
import Layout from "../../components/Layout";
import { gardenFilePath, GARDENS_PATH } from "../../utils/mdxUtils";
import Layout from "../components/Layout";
import { gardenFilePath, GARDENS_PATH } from "../utils/mdxUtils";
// Custom components/renderers to pass to MDX.
// Since the MDX files aren't loaded by webpack, they have no knowledge of how

View file

@ -23,10 +23,10 @@
}
}
body {
height: 100%;
html {
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
min-height: 100vh;
background-color: rgb(243, 250, 218);
background: linear-gradient(
180deg,