Socket
Book a DemoInstallSign in
Socket

hexo-tag-githubimage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-tag-githubimage

Inserts an image tag using a github content distribution.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Introduction

This is a hexo tag plugin which allows you to embed an image stored on your Github repository with specific branch.

Hexo Version

For 2.x, use version 0.0.1 of this plugin. Version 0.1.x and beyond only support Hexo v3.x.

Installation

To install, run the following command in the root directory of hexo:

npm install hexo-tag-githubimage --save

And add this plugin in your _config.yml.

plugins:
  - hexo-tag-githubimage

Usage

{% ghimg imageId [class1,class2] [JSONImageAttibutes] %}

Example:

{% ghimg /wizicer/IcerSite/dev/source/images/icer.png center,custom_class1,custom_class2 {"width":450,"height":450,"alt":"Image Alt"} %}

Will output:

<img width="450" height="450" alt="Image Alt" src="https://raw.githubusercontent.com/wizicer/IcerSite/dev/source/images/icer.png" class="center custom_class1 custom_class2">

IMPORTANT

Classes must be comma-separated and without spaces. Same as JSONImageAttibutes.

Keywords

website

FAQs

Package last updated on 27 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts