The /events/metro-west-community-leader-mixer/index.html was created today by my client via foresty.io and the generated html file is not showing up in my S3 bucket at all.
Hmm, i was having a really hard time getting Hugo to not escapte the & character (using safeHTML didn’t help), which is why i settled on the print function, which you can see in my image template here:
{{ $src := print $.imgixURL .src "?" }}
{{ $imgixDefaults := "auto=format" }}
srcset="{{ $src }}{{ with $.imgixParams }}{{ print . "&" }}{{ end }}{{ $imgixDefaults }} 1x,
{{ $src }}{{ with $.imgixParams }}{{ print . "&" }}{{ end }}fit=max&q=40&dpr=2&{{ $imgixDefaults }} 2x,
{{ $src }}{{ with $.imgixParams }}{{ print . "&" }}{{ end }}fit=max&q=20&dpr=3&{{ $imgixDefaults }} 3x"
src="{{ $src }}{{ with $.imgixParams }}{{ print . "&" }}{{ end }}{{ $imgixDefaults }}"
No errors are thrown on my local instance—the site builds just fine. It’s only the circleCI build that’s failing. I made the change you suggested, but the problem continues.
I checked on the image my client uploaded, and it contains spaces in the file name, Community Leaders Dinner.jpg.
I store this site’s media in a separate S3 bucket. So one of the files in question lives here: https://s3.us-east-2.amazonaws.com/media.metrowestcle.org/2019/07/Community%20Leaders%20Dinner.jpg
And, so far as i can tell, the other file in question is here: https://s3.us-east-2.amazonaws.com/media.metrowestcle.org/2019/01/DSC_0108.jpg
So i’m trying to narrow down on what’s causing the html proofer to fail the build:
The ampersand escaping
Files with special characters (e.g. spaces and capital letters)
But, as you can see, the & continues to escape. I did check out that link and am investigating integrating into my project. Honestly i’m hesitant to make a change at the configuration level, since it seems as though my templates should work as is. This feels more like a bug. But i may have no choice—and i’m glad to have the recommendation from you. Truly appreciate your help.
The error states that it EXPECTS ; and doesn’t get it. This is the case in the &-attributes AFTER the first escaped &. Try converting them to & and it receives the ; it looks for.
You did not share much of your code, but this blackbox example looks to me as if you are using some HTML version that requires parameters in urls to be escaped. I remember having to do this back in the days of HTML 4.1 Transitional.