Skip to content
Insert arbitrary html tags (with attributes) in hexo content.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
README.md
index.js
package.json

README.md

hexo-tag-htmltag

A Hexo tag for inserting arbitrary html tags (with attributes) into posts.

Installation

npm install hexo-tag-htmltag --save

Use

Basic

{% htmlTag span class="highlight text" %} Something important {% endhtmlTag %}
// -> <span class="highlight text">Something important</span>

Multiple Attributes

{% htmlTag button type="button" data-submit data-action="add" aria-controls="calc"%} Add 10 {% endhtmlTag %}
// -> <button type="button" data-submit data-action="add" aria-controls="calc">Add 10</button>

License

MIT

You can’t perform that action at this time.