1.1.0 • Published 4 years ago

hexo-asset-plus v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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