Skip to content

Commit

Permalink
fix: do not format gif as webp (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 1, 2023
1 parent b2af66c commit bb86cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/images/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{/* - Original : whether to describe the original image info via data-* attributes, default to false. */}}
{{/* - LazyLoading : whether enable lazy loading, default true. */}}
{{/* - Style : additional inline style for <img> tag. */}}
{{- $formats := slice "bmp" "gif" "jpeg" "jpg" "png" "tif" "tiff" "webp" }}
{{- $formats := slice "bmp" "jpeg" "jpg" "png" "tif" "tiff" "webp" }}
{{- $modernFormat := "webp" }}
{{- if isset site.Params.images "modern_format" }}
{{- $modernFormat = site.Params.images.modern_format }}
Expand Down

0 comments on commit bb86cf1

Please sign in to comment.