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
|
<Link
|
||||||
as={`/posts/${post.filePath.replace(/\.mdx?$/, "")}`}
|
as={`${post.filePath.replace(/\.mdx?$/, "")}`}
|
||||||
href={`/posts/[slug]`}
|
href={`[slug]`}
|
||||||
>
|
>
|
||||||
<a>
|
<a>
|
||||||
{post.data.image && (
|
{post.data.image && (
|
||||||
|
|
|
@ -7,8 +7,8 @@ import Head from "next/head";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import Layout from "../../components/Layout";
|
import Layout from "../components/Layout";
|
||||||
import { gardenFilePath, GARDENS_PATH } from "../../utils/mdxUtils";
|
import { gardenFilePath, GARDENS_PATH } from "../utils/mdxUtils";
|
||||||
|
|
||||||
// Custom components/renderers to pass to MDX.
|
// Custom components/renderers to pass to MDX.
|
||||||
// Since the MDX files aren't loaded by webpack, they have no knowledge of how
|
// Since the MDX files aren't loaded by webpack, they have no knowledge of how
|
|
@ -23,10 +23,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
html {
|
||||||
height: 100%;
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-attachment: fixed;
|
background-size: cover;
|
||||||
|
min-height: 100vh;
|
||||||
background-color: rgb(243, 250, 218);
|
background-color: rgb(243, 250, 218);
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
|
|
Loading…
Reference in a new issue