hexo-retina
v1.0.1
Published
Add data-rjs="2" attribute to image and create normal image
Downloads
34
Readme
hexo-retina
- Add data-rjs="2" attribute to image
Install
$ npm install hexo-retina --saveDownload the minified script of retinajs and include it at the bottom of your layout page.
script(src="/js/retina/retina.min.js")Call the function retinajs() in your javascript file.
retinajs()Usage
Upload your retina image and use:
{% retina '/path/to/image@2x | attributes ' %}For example:
{% retina '/hexo-retina/[email protected] | alt="hexo-retina" height="42" width="42"' %}The script will create a imagen with regular resolution.
