Hexo shortcodes helper. Various shortcodes for hexo, adapted from jekyll. Various hexo shortcode tags.
- Firsly, remove old original tag renderer. Because this plugin already have all default tag (
vimeo,youtube,gist,codeblock)
npm un hexo-tag-embed- Install hexo-shortcodes
production
npm i hexo-shortcodeslatest changes, replace COMMIT_HASH with latest commit hash. see pre-release commit history
npm i hexo-shortcodes@https://github.com/dimaslanjaka/hexo-shortcodes/raw/COMMIT_HASH/pre-release/release/hexo-shortcodes.tgz
# or
yarn add hexo-shortcodes@https://github.com/dimaslanjaka/hexo-shortcodes/raw/COMMIT_HASH/pre-release/release/hexo-shortcodes.tgz| shortcode | description |
|---|---|
| hexo codepen shortcode | embed codepen |
| hexo gist shortcode | embed gist |
| hexo jsfiddle shortcode | embed jsfiddle |
| hexo githubCard shortcode | embed github card |
| hexo rssreader shortcode | embed rss feed |
| hexo github shortcode | embed any source files from github.com |
| hexo npmrunkit shortcode | embed any javascript codes to website |
| hexo include_file shortcode | include any files relative to hexo.config.source_dir, hexo.config.code_dir, or reference file it self |
| videos | default hexo embedding videos |
define renderer returns by setting _config.yml
hexo-shortcodes:
# true = return raw markdown format instead html
raw: falseread more at https://github.com/dimaslanjaka/hexo-shortcodes/commits/pre-release (chore,feat,fix sections)
- feat: update
hexo-tag-embedfrom fork
- fix:
hexo@6context.extend.highlightundefined TypeError: Cannot read properties of undefined (reading 'query')
include_file: fix typeofhexoundefined
include_file: add include file shortcode taggist: fix failed embed spesific lines
gist: change parameters and usagesgist: validate id is URL or not
rssreader: hotfix get thumbnail from rss itemrssreader: fix: validateitem['media:group']is Array
gist: fix undefined username
- fix: invalid
git-embedlocation