+
diff --git a/src/data/blog/how-to-configure-astropaper-theme.md b/src/data/blog/how-to-configure-astropaper-theme.md
index becfc31..50da1dd 100644
--- a/src/data/blog/how-to-configure-astropaper-theme.md
+++ b/src/data/blog/how-to-configure-astropaper-theme.md
@@ -69,6 +69,19 @@ Here are SITE configuration options
| `lang` | Used as HTML ISO Language code in ``. Default is `en`. |
| `timezone` | This option allows you to specify your timezone using the [IANA format](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Setting this ensures consistent timestamps across your localhost and deployed site, eliminating time differences. |
+## Update layout width
+
+The default `max-width` for the entire blog is `768px` (`max-w-3xl`). If you'd like to change it, you can easily update the `max-w-app` utility in your `src/styles/global.css` file:
+
+```css
+@utility max-w-app {
+ @apply max-w-4xl xl:max-w-5xl;
+ /* eg: max-w-4xl xl:max-w-5xl */
+}
+```
+
+You can explore more `max-width` values in the [Tailwind CSS docs](https://tailwindcss.com/docs/max-width).
+
## Configuring logo or title
Prior to AstroPaper v5, you can update your site name/logo in `LOGO_IMAGE` object inside `src/config.ts` file. However, in AstroPaper v5, this option has been removed in favor of Astro's built-in SVG and Image components.
diff --git a/src/layouts/AboutLayout.astro b/src/layouts/AboutLayout.astro
index e38d457..e541625 100644
--- a/src/layouts/AboutLayout.astro
+++ b/src/layouts/AboutLayout.astro
@@ -19,7 +19,7 @@ const { frontmatter } = Astro.props;
-
+
diff --git a/src/layouts/Main.astro b/src/layouts/Main.astro
index 91f7151..7520135 100644
--- a/src/layouts/Main.astro
+++ b/src/layouts/Main.astro
@@ -24,7 +24,7 @@ const backUrl = SITE.showBackButton ? Astro.url.pathname : "/";
{
"titleTransition" in props ? (
diff --git a/src/layouts/PostDetails.astro b/src/layouts/PostDetails.astro
index 285ecc5..039322e 100644
--- a/src/layouts/PostDetails.astro
+++ b/src/layouts/PostDetails.astro
@@ -87,7 +87,7 @@ const nextPost =
+
diff --git a/src/pages/404.astro b/src/pages/404.astro
index e0ee430..3643653 100644
--- a/src/pages/404.astro
+++ b/src/pages/404.astro
@@ -11,7 +11,7 @@ import { SITE } from "@/config";
404
diff --git a/src/styles/global.css b/src/styles/global.css
index 99077b1..4d56e57 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -50,10 +50,14 @@ html[data-theme="dark"] {
}
section,
footer {
- @apply mx-auto max-w-3xl px-4;
+ @apply mx-auto max-w-app px-4;
}
}
+@utility max-w-app {
+ @apply max-w-3xl;
+}
+
.active-nav {
@apply underline decoration-wavy decoration-2 underline-offset-4;
}