Skip to content

Commit 5f298bc

Browse files
Wrap contents with a content-wrapper
1 parent f0370a3 commit 5f298bc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1>{{ .Title }}</h1>
66
{{ if .Params.Subtitle }}
77
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
88
{{ end }}
9-
<div>
9+
<div class="content-wrapper">
1010
{{ .Content }}
1111
</div>
1212
</div>

layouts/partials/posts/list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ <h1>{{ .Title }}</h1>
3535
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
3636
{{ end }}
3737
{{ if .Content }}
38-
{{ .Content }}
38+
<div class="content-wrapper">
39+
{{ .Content }}
40+
</div>
3941
{{ end }}
4042
{{ $posts := .RegularPagesRecursive.ByPublishDate.Reverse }}
4143
{{ partial "posts/list-without-summary.html" $posts }}

layouts/partials/posts/post.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
1515
</div>
1616
{{ end }}
1717
{{ end }}
18-
{{ .Content }}
18+
<div class="content-wrapper">
19+
{{ .Content }}
20+
</div>
1921
{{ partial "posts/comments.html" .}}
2022
</div>
2123
</div>

0 commit comments

Comments
 (0)