1.1.0 • Published 5 years ago
hexo-tag-real-time-calculator v1.1.0
hexo-tag-real-time-calculator
A hexo plugin for inserting values which need to be calculated on real time.
This plugin is very easy to use.
Installation
Locate to the root path of your hexo blog.
npm i hexo-tag-real-time-calculator --save
Done!
Usage
{% calc '<JS code for returning result.>' %}
For example:
I'am {% calc "(new Date()).getFullYear()-1992" %} years old.
Or
I'am {% calc '(new Date()).getFullYear()-1992' %} years old.
The output is(in 2019):
I'am 27 years old.