Skip to content

Commit cf15edb

Browse files
committed
Fix: center content on regular pages
1 parent 24e7b22 commit cf15edb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎_layouts/page.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44

5-
<article>
5+
<article class="page-content">
66
<h1 class="page-title">{{ page.title }}</h1>
77
{{ content }}
88
</article>

‎assets/css/style.css‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,10 @@ footer {
277277
.page-title {
278278
font-size: 1.5rem;
279279
}
280-
}
280+
}
281+
/* Regular pages (not home) - centered content */
282+
.page-content {
283+
max-width: 800px;
284+
margin: 0 auto;
285+
padding: 2rem 1rem;
286+
}

0 commit comments

Comments
 (0)