diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index ce692cc..88e586b 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -6,19 +6,18 @@ import MenuItem from "../components/MenuItem.astro"; export interface Props { title: string; description: string; - article?: boolean; + mainpage?: boolean; } -const { title, description, article = false } = Astro.props; +const { title, description, mainpage = false } = Astro.props; --- { - !article ? - - : + mainpage ? + : } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 446ca46..28186e3 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -52,7 +52,6 @@ const { title, description } = Astro.props; margin: auto; padding: @main-padding; max-width: @max-width; - width: 100%; } article { diff --git a/src/pages/blog/[slug].astro b/src/pages/blog/[slug].astro index 5c65f63..ce26e12 100644 --- a/src/pages/blog/[slug].astro +++ b/src/pages/blog/[slug].astro @@ -22,7 +22,7 @@ const { } = await postRenderer(post); --- - + @@ -48,6 +48,10 @@ const {