Skip to content

Commit

Permalink
feat: Implements resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hui committed Mar 8, 2024
1 parent a30ae77 commit 9fcd427
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 1 # Increment this number if you need to re-download cached gems
- name: Setup build dependencies
run: |
sudo apt-get update
sudo apt-get install graphicsmagick
- name: Checks Ruby Gems
run: bundle list
- name: Setup Pages
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ group :jekyll_plugins do
gem "jekyll-seo-tag", "~> 2.6"
gem 'jekyll-redirect-from'
gem 'jekyll-scholar'
gem "jekyll-resize", git: "https://github.com/MichaelCurrin/jekyll-resize"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
GIT
remote: https://github.com/MichaelCurrin/jekyll-resize
revision: 917a7572d0318e40f4a420d5b2ce9e8dbe16776c
specs:
jekyll-resize (1.3.1)
jekyll (> 3.3, < 5.0)
mini_magick (~> 4.8)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -73,6 +81,7 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_magick (4.12.0)
namae (1.2.0)
racc (~> 1.7)
pathutil (0.16.2)
Expand Down Expand Up @@ -116,6 +125,7 @@ DEPENDENCIES
jekyll (~> 4.3.3)
jekyll-feed (~> 0.12)
jekyll-redirect-from
jekyll-resize!
jekyll-scholar
jekyll-seo-tag (~> 2.6)
tzinfo (>= 1, < 3)
Expand Down
2 changes: 1 addition & 1 deletion _posts/2013-04-16-triton-day-launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ post_format:

Triton Day is UCSD's day to show off to new admits what we're all about, so we took the opportunity to send up the balloon. Here's some imagery we got.

![]({{"/assets/2013-04-16-warren-bear.jpg" | absolute_url}}){: width="200" }
![]({{"/assets/2013-04-16-warren-bear.jpg" | resize: "200x200>"}})
![]({{"/assets/2013-04-16-triton-day-crowd.jpg" | absolute_url}}){: width="200" }
![]({{"/assets/2013-04-16-ebu1-house-below.jpg" | absolute_url}}){: width="200" }
![]({{"/assets/2013-04-16-geisel-and-ocean.jpg" | absolute_url}}){: width="200" }
Expand Down

0 comments on commit 9fcd427

Please sign in to comment.