I have two sites using the grid-side theme. One is working fine, both locally and on GitHub. The other is triggering the SafeCSS issue somewhere, and I can’t figure out why. All images are coming up like this in the public folder:
<img src="#ZgotmplZ"
I fixed this in one post by converting the YAML frontmatter to TOML - so I guess Hugo doesn’t like for the main config file to be TOML while the posts are YAML? Will I need to convert all my posts over?
To answer my own question, I had some frontmatter regarding images that was leftover from Jekyll. Hugo didn’t like it, evidently, so once it was removed/converted all is fine.
“ZgotmplZ” is a special value that indicates that unsafe content reached a
CSS or URL context at runtime. The output of the example will be <img src="#ZgotmplZ">
For now, it’s really no harder to use inline HTML in my content, and it works fine for my use-case. But this is a corner case in the template engine I wasn’t quite sure how to address.