Skip to content

Commit b7ca159

Browse files
committed
set max image width in the blog to 100%, fixes #23
1 parent 26895da commit b7ca159

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: _layouts/post.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- content -->
1818
<section>
1919
<div class="w-md-80 m-auto">
20-
<div class="w-md-80">
20+
<div class="w-md-80 blog-content">
2121
{{ content }}
2222
</div>
2323
</div>

Diff for: assets/style.css

+4
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ ul.list-inline {
206206
width: 100%;
207207
}
208208

209+
.blog-content p > img {
210+
max-width: 100%;
211+
}
212+
209213
.post-date a {
210214
background-color: #000;
211215
color: #fff;

0 commit comments

Comments
 (0)