diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index 00f04ea..1cc2dc0 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -6,16 +6,21 @@ import MenuItem from "../components/MenuItem.astro"; export interface Props { title: string; description: string; + article?: boolean; } -const { title, description } = Astro.props; +const { title, description, article = false } = Astro.props; --- - - + { + !article ? + + : + + } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7d727cd..473d057 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -34,7 +34,7 @@ const { title, description } = Astro.props; padding: 0; box-sizing: border-box; - padding: 0 0.5rem; + padding: 0 @body-padding; background: var(--bg); color: var(--fg); @@ -46,8 +46,12 @@ const { title, description } = Astro.props; main { margin: auto; - padding: 0.25rem; + padding: @main-padding; max-width: @max-width; + /* + width: 100%; + overflow-x: hidden; + */ } article { diff --git a/src/pages/blog/[slug].astro b/src/pages/blog/[slug].astro index 81e6766..251dcbc 100644 --- a/src/pages/blog/[slug].astro +++ b/src/pages/blog/[slug].astro @@ -26,7 +26,7 @@ const { const locale = 'ru-RU'; --- - + @@ -50,6 +50,8 @@ const locale = 'ru-RU';