mirror of
https://github.com/MaggieAppleton/digital-gardeners.git
synced 2024-11-21 17:09:45 +01:00
fixed slug paths
This commit is contained in:
parent
ee405f2f21
commit
4716d551bf
|
@ -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 && (
|
||||
|
|
|
@ -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
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue