diff --git a/Gemfile b/Gemfile index 9634030b57d3..bac9010a0936 100644 --- a/Gemfile +++ b/Gemfile @@ -6,6 +6,7 @@ group :jekyll_plugins do gem 'jekyll-feed' gem 'jekyll-github-metadata' gem 'jekyll-paginate-v2' + gem 'jekyll-responsive-image' gem 'jekyll-scholar' gem 'jekyll-sitemap' gem 'jekyll-target-blank' diff --git a/_config.yml b/_config.yml index 9172ef0e8bc9..2e175b70bd9f 100644 --- a/_config.yml +++ b/_config.yml @@ -154,6 +154,7 @@ plugins: - jekyll-feed - jekyll-github-metadata - jekyll-paginate-v2 + - jekyll-responsive-image - jekyll-sitemap - jekyll-target-blank - jekyll-twitter-plugin @@ -191,6 +192,24 @@ scholar: query: "@*" + +# ----------------------------------------------------------------------------- +# Jekyll Responsive Images +# ----------------------------------------------------------------------------- + +responsive_image: + template: _includes/responsive_img.html + # Quality to use when resizing images. + default_quality: 80 + sizes: + - width: 480 + - width: 800 + - width: 1400 + quality: 90 + # Strip EXIF and other JPEG profiles. Helps to minimize JPEG size. + strip: true + + # ----------------------------------------------------------------------------- # Jekyll Diagrams # ----------------------------------------------------------------------------- diff --git a/_includes/projects.html b/_includes/projects.html index 1af5547d30ba..396690d754b1 100644 --- a/_includes/projects.html +++ b/_includes/projects.html @@ -6,7 +6,10 @@ {% endif %}