Skip to content

Commit ca117c5

Browse files
committed
Fixed page layout to have max-width for content.
1 parent db44886 commit ca117c5

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

_layouts/page.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
layout: default
33
---
44
<article class="post">
5+
<div class="article-container">
56

6-
<header class="post-header">
7-
<h1 class="post-title">{{ page.title }}</h1>
8-
</header>
7+
<header class="post-header">
8+
<h1 class="post-title">{{ page.title }}</h1>
9+
</header>
910

10-
<div class="article-content">
11-
{{ content }}
12-
</div>
11+
<div class="article-content">
12+
{{ content }}
13+
</div>
1314

15+
</div>
1416
</article>

css/custom.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a:active, a:hover, a > div:active, a > div:hover {
2323
outline: 0;
2424
}
2525

26-
header, main {
26+
header, main, article {
2727
display: block;
2828
}
2929

@@ -410,6 +410,13 @@ ol, ul {
410410
src: url("/assets/Charter.woff")
411411
}
412412

413+
.article-container {
414+
max-width: 780px;
415+
margin-left: auto;
416+
margin-right: auto;
417+
padding: 0 15px;
418+
}
419+
413420
blockquote {
414421
font-size: 14px;
415422
}

0 commit comments

Comments
 (0)