0.1.3 • Published 6 years ago
hexo-filter-crossorigin v0.1.3
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.