From 4716d551bfa49ae15ff73f17bce67ce24a243dbb Mon Sep 17 00:00:00 2001 From: Maggie Appleton Date: Mon, 6 Sep 2021 15:41:00 +0100 Subject: [PATCH] fixed slug paths --- components/Card.js | 4 ++-- pages/{posts => }/[slug].js | 4 ++-- styles/tailwind.css | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename pages/{posts => }/[slug].js (95%) diff --git a/components/Card.js b/components/Card.js index 6e6e4a2..277bb5a 100644 --- a/components/Card.js +++ b/components/Card.js @@ -17,8 +17,8 @@ export default function Card({ post }) { }} > {post.data.image && ( diff --git a/pages/posts/[slug].js b/pages/[slug].js similarity index 95% rename from pages/posts/[slug].js rename to pages/[slug].js index c648fce..0311b6e 100644 --- a/pages/posts/[slug].js +++ b/pages/[slug].js @@ -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 diff --git a/styles/tailwind.css b/styles/tailwind.css index 6691872..0bb3f10 100644 --- a/styles/tailwind.css +++ b/styles/tailwind.css @@ -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,