Skip to content

Commit

Permalink
fix image resize
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Jun 24, 2024
1 parent ee7d21e commit d22f6fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _posts/2019-11-17-example-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Description goes here
file: https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3 #Link to your .mp3 file
length: "3" #
videoid: dQw4w9WgXcQ #Copy here only the id of your YouTube video
cover: wave.svg
cover: sample.png
author: Joe Black

---
Expand Down
1 change: 1 addition & 0 deletions _sass/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
height: 100%;
aspect-ratio : 1 / 1;
img{
object-fit: cover;
display: block;
width: 210px;
//width: auto;
Expand Down
12 changes: 10 additions & 2 deletions assets/css/mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
.short-excerpt{
display: none;
}
.cover-img{
img{
width: 262px;
height: 262px;
}
}
}
}
}
Expand All @@ -79,7 +85,8 @@
}
}
img{
height: 135px;
height: 230px;
width: 230px;
}
height: 230px;
}
Expand All @@ -98,7 +105,8 @@
.post{
height: 300px;
img{
height: 135px;
height: 300px;
width: 70px;
}
h2{
margin: 0px;
Expand Down
Binary file added assets/forposts/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d22f6fe

Please sign in to comment.