diff options
Diffstat (limited to '')
-rw-r--r-- | Gemfile | 3 | ||||
-rw-r--r-- | _config.yml | 42 | ||||
-rw-r--r-- | _includes/image.html | 1 |
3 files changed, 2 insertions, 44 deletions
@@ -7,8 +7,7 @@ gem "rake" group :jekyll_plugins do gem "jekyll-last-modified-at" gem "jekyll-redirect-from" - gem "jekyll-webp" gem "jekyll-remote-theme" gem "jekyll-seo-tag" gem 'jekyll-default-layout' -end
\ No newline at end of file +end diff --git a/_config.yml b/_config.yml index 0a8c186..8be0e5a 100644 --- a/_config.yml +++ b/_config.yml @@ -90,46 +90,6 @@ mermaid: # barGap: 4 # topPadding: 50 -############################################################ -# 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: 80 - - # List of directories containing images to optimize, nested directories will only be checked if `nested` is true - # 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: ["/img","/assets/img/"] - - # Whether to search in nested directories or not - nested: false - - # 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 - # Eg : "/usr/local/bin/cwebp" - webp_path: nil - - # List of files or directories to exclude - # e.g. custom or hand generated webp conversion files - exclude: [] - - # append '.webp' to filename after original extension rather than replacing it. - # Default transforms `image.png` to `image.webp`, while changing to true transforms `image.png` to `image.png.webp` - append_ext: false -############################################################ - - collections: ont: permalink: "/:path/" @@ -150,4 +110,4 @@ just_the_docs: nav_fold: false gpon: name: GPON - nav_fold: false
\ No newline at end of file + nav_fold: false diff --git a/_includes/image.html b/_includes/image.html index 19149b3..5aa729b 100644 --- a/_includes/image.html +++ b/_includes/image.html @@ -2,7 +2,6 @@ {% if {{include.url}} %} <a class="no_icon" target="_blank" rel="noopener" href="{{include.url}}"> {% endif %} - <source srcset='../assets/img/{{include.file | remove: ".jpg" | remove: ".png" | remove: ".jpeg" | remove: ".tiff" | remove: ".gif" }}.webp' type="image/webp"> <img class="docimage" src="../assets/img/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} /> {% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %} <figcaption> |