[ ] I have verified that the specs/tests pass on my computer.
[x] I have not attempted to bump, or alter versions.
[x] This is a documentation change.
[ ] This is a source change.
Description
I was looking for a way to prevent <img> elements from having an integrity attribute because that's not valid HTML. I saw this config snippet in the README:
It drove me to realize that this config will do what I want:
assets:
defaults:
img:
integrity: false
Additionally, the README says that "All values listed below are default", which made me unsure if the values should be set to true or false because the real default value is Jekyll.production?. I chose true because I consider it's more important to know what happens in production, but let me know if you disagree. Maybe a comment would be necessary?
Description
I was looking for a way to prevent
<img>
elements from having anintegrity
attribute because that's not valid HTML. I saw this config snippet in the README:I tried it out, but I got an exception (
undefined method 'key?' for "highlighter":String
). After reading the source code I found this hint: https://github.com/envygeeks/jekyll-assets/blob/056d2c88719ef3b1f90967a606dd1441581dd832/lib/jekyll/assets/plugins/html/defaults/img.rb#L59-L68It drove me to realize that this config will do what I want:
Additionally, the README says that "All values listed below are default", which made me unsure if the values should be set to
true
orfalse
because the real default value isJekyll.production?
. I chosetrue
because I consider it's more important to know what happens in production, but let me know if you disagree. Maybe a comment would be necessary?