diff --git a/Gemfile b/Gemfile index 5320534..ccac8e3 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ gem "jekyll", "~> 3.7.2" group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" gem "jekyll-assets" + gem "jekyll-webp" end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index b81d227..9007ce5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,6 +55,7 @@ GEM sass (~> 3.4) jekyll-watch (2.1.2) listen (~> 3.0) + jekyll-webp (1.0.0) kramdown (1.17.0) liquid (4.0.3) liquid-tag-parser (1.9.0) @@ -98,7 +99,8 @@ DEPENDENCIES jekyll (~> 3.7.2) jekyll-assets jekyll-feed (~> 0.6) + jekyll-webp tzinfo-data BUNDLED WITH - 1.16.1 + 2.0.1 diff --git a/_config.yml b/_config.yml index 7cdfbc9..5829cd1 100644 --- a/_config.yml +++ b/_config.yml @@ -46,3 +46,34 @@ exclude: - CONTRIBUTING.md - LICENSE.md - WEBSITE-CODE-OF-CONDUCT.md + +############################################################ +# Site configuration for the WebP Generator Plugin +# The values here represent the defaults if nothing is set +webp: + enabled: true + + # The quality of the webp conversion 0 to 100 (where 100 is least lossy) + quality: 75 + + # List of directories containing images to optimize, nested directories will not be checked + # By default the generator will search for a folder called `/img` under the site root and process all jpg, png and tiff image files found there. + img_dir: ["/assets/images"] + + # add ".gif" to the format list to generate webp for animated gifs as well + formats: [".jpeg", ".jpg", ".png", ".tiff"] + + # File extensions for animated gif files + gifs: [".gif"] + + # Set to true to always regenerate existing webp files + regenerate: false + + # Local path to the WebP utilities to use (relative or absolute) + # Omit or leave as nil to use the utilities shipped with the gem, override only to use your local install + webp_path: nil + + # List of files or directories to exclude + # e.g. custom or hand generated webp conversion files + exclude: [] +############################################################ \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 16721fe..68b97ca 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -3,17 +3,23 @@