Name: hexo-tag-imgurl
Owner: Hexo
Description: A simple image tag plugin for Hexo.
Created: 2016-12-24 06:05:55.0
Updated: 2017-12-14 01:17:31.0
Pushed: 2018-01-02 11:58:14.0
Homepage: null
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a hexo tag plugin which allows you to embed an image stored on CDN host.
Run the following command in the root directory of Hexo:
install hexo-tag-imgurl --save
Then add your CDN url in your site _config.yml
.
gurl
portant: This value starts without a protocol and it doesn't end with '/'.
tpsMod: true | false
the value not set, image url will automatically adapt to the site's protocol.
rl: example.com/images
sMod:
mgurl imagePath [class1,class2,classN] imgAttr %}
Example:
gurl
portant: This value starts without a protocol and it doesn't end with '/'.
rl: example.com/images
mgurl test-post/test.png ful-image alt:test.png %}
Will output the HTML:
src="//example.com/images/test-post/test.png" class="full-image" alt="test.png">