diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e94788..e27415c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Featured images overlap page title when article metadata hidden ([#827](https://github.com/jpanther/congo/issues/827)) - Inconsistent picture rendering between `figure` shortcode and Markdown render hook ([#828](https://github.com/jpanther/congo/issues/828)) +- Animated GIF files are static when `enableImageWebp` is enabled ([#866](https://github.com/jpanther/congo/issues/866)) ## [2.8.2] - 2024-04-17 diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html index a843f15..ddca360 100644 --- a/layouts/partials/picture.html +++ b/layouts/partials/picture.html @@ -53,7 +53,7 @@ {{ $width = div .Width 2 }} {{ $height = div .Height 2 }} {{ end }} - {{ if $webp }} + {{ if and $webp (ne .MediaType.SubType "gif") }}