Skip to content

Commit 5f83cf2

Browse files
committed
Left-align all blog pages
Apply left-alignment to both blog listing and individual blog posts, while keeping other pages (home, etc.) centered
1 parent 49b4d6f commit 5f83cf2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

layouts/partials/custom_head.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<style>
2+
/* Left-align all blog pages (listing and posts) */
3+
{{ if eq .Section "blog" }}
4+
body {
5+
margin-left: 20px;
6+
margin-right: auto;
7+
}
8+
{{ end }}
9+
</style>

0 commit comments

Comments
 (0)