Skip to content

Commit

Permalink
fix: aspect ratio cropping
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed May 31, 2024
1 parent fa56cb9 commit 76ddeae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/UCSD-E4E/jekyll-resize
revision: b3972253d3a5293570c8d949d19536a6887b006b
revision: 480052732aad30ed4d9fa1dc34db9df6b39a511d
specs:
jekyll-resize (1.3.1)
jekyll (> 3.3, < 5.0)
Expand All @@ -14,13 +14,14 @@ GEM
bibtex-ruby (6.1.0)
latex-decode (~> 0.0)
racc (~> 1.7)
bigdecimal (3.1.8)
citeproc (1.0.10)
namae (~> 1.0)
citeproc-ruby (1.1.14)
citeproc (~> 1.0, >= 1.0.9)
csl (~> 1.6)
colorator (1.1.0)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.1)
csl (1.6.0)
namae (~> 1.0)
rexml
Expand All @@ -33,13 +34,17 @@ GEM
ffi (1.16.3)
ffi (1.16.3-x64-mingw-ucrt)
forwardable-extended (2.6.0)
google-protobuf (4.26.1-arm64-darwin)
google-protobuf (4.27.0-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.26.1-x64-mingw-ucrt)
google-protobuf (4.27.0-x64-mingw-ucrt)
bigdecimal
rake (>= 13)
google-protobuf (4.26.1-x86_64-darwin)
google-protobuf (4.27.0-x86_64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.26.1-x86_64-linux)
google-protobuf (4.27.0-x86_64-linux)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
i18n (1.14.5)
Expand Down Expand Up @@ -102,13 +107,13 @@ GEM
strscan (>= 3.0.9)
rouge (4.2.1)
safe_yaml (1.0.5)
sass-embedded (1.77.2-arm64-darwin)
sass-embedded (1.77.3-arm64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.77.2-x64-mingw-ucrt)
sass-embedded (1.77.3-x64-mingw-ucrt)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.77.2-x86_64-darwin)
sass-embedded (1.77.3-x86_64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.77.2-x86_64-linux-gnu)
sass-embedded (1.77.3-x86_64-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
strscan (3.1.0)
terminal-table (3.0.2)
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2 class="home_header">SPONSER OUR RESERACH</h2>
<div class="home-post-image">
{%- if post.featuredImage -%}
<img
src="{{ post.featuredImage | string | crop: '3:2+0+0,Center' | resize: '300x200' | format: 'webp' | absolute_url }}"
src="{{ post.featuredImage | string | crop: '3:2+0+0,Center' | resize: '300x200!' | format: 'webp' | absolute_url }}"
>
{% else %}
<img
Expand Down

0 comments on commit 76ddeae

Please sign in to comment.