We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The profile.html and author.html partials don't pass a webp configuration through to the picture.html partial.
profile.html
author.html
webp
picture.html
Looks like this can be fixed by doing something like the following in both places:
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index cf0331f2..a59db5ef 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -14,7 +14,8 @@ {{ $authorImage := resources.Get . }} {{ if $authorImage }} {{ $imgClass := "mb-2 h-auto w-36 rounded-full" }} - {{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy) }} + {{ $webp := $.Page.Site.Params.enableImageWebp | default true }} + {{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy "webp" $webp) }} {{ end }} {{ end }} <h1 class="text-4xl font-extrabold">
stable
0.140.2-extended
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue description
The
profile.html
andauthor.html
partials don't pass awebp
configuration through to thepicture.html
partial.Looks like this can be fixed by doing something like the following in both places:
Theme version
stable
Hugo version
0.140.2-extended
Which browser rendering engines are you seeing the problem on?
No response
URL to sample repository or website
No response
Hugo output or build error messages
No response
The text was updated successfully, but these errors were encountered: