Skip to content

CyrilTaylor/hexo-asset-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-asset

Support original markdown image expressions when enabling post_asset_folder, and no need to use private hexo tags anymore

Detail

./path/asset.jpg will be replaced to your_post_path/asset.jpg

URLs started with http, https, //, / or plain string(path/asset.jpg) will keep

Config

If you want to render the image link as markdown style instead of tag plugins style, you should add following code to _config.yml of hexo project.

asset:
  tag_plugins_mode: false
  • tag_plugins_mode : set the image link to tag plugins mode(default mode, true) or markdown mode(false).
    • tag plugins mode: {% asset_img slug [title] %}
    • markdown mode: ![image title](image url)

TODO

  • test
  • can add a custom host prefix path such as a cdn address

About

hexo plugin, format asset path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%