hexojs/hexo-tag-imgurl

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Introduction

npm npm npm npm

This is a hexo tag plugin which allows you to embed an image stored on CDN host.

Installation

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:
Usage
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">
TODO

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.