hexo-filter-crossorigin
v0.1.3
Published
Append crossorigin attribute to HTML elements
Downloads
2
Maintainers
Readme
hexo-filter-crossorigin
Append crossorigin attribute to HTML elements (<img>
, <video>
, etc).
Why
Config
# _config.yml
filter_crossorigin:
- name: img
crossorigin: true
domains:
- unpkg.com
attrs:
- src
- name: tag name.
- crossorigin: true (alias of anonymous) | false | anonymous | use-credentials.
- domains: optional. If not provided, all elements that match tag name will be affected.
- attrs: optional. Tag attributes to match domains. Default to
src
,data-src
,href
.