Skip to content

Commit 5108a4b

Browse files
Merge pull request #25 from mainsail-org/mir/img-fix
set image max-width in the blog to 100%, fixes #23
2 parents 26895da + b7ca159 commit 5108a4b

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)