Skip to content

chenzd123456/hexo-asset-image-master

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hexo-asset-image

解决官方hexo-asset-image插件,在同时使用hexo-abbrlink时,会导致图片路径错误。

Usege

  1. 配置

    _config.yml配置文件中设置post_asset_folder: true

  2. 添加依赖

    npm install https://github.com/chenzd123456/hexo-asset-image-master.git --save
    npm install hexo-abbrlink --save
  3. 指定文章链接

    root: /
    permalink: ":year:month:day/:abbrlink.html"
    
    pretty_urls:
      trailing_index: true # Set to false to remove trailing 'index.html' from permalinks, dont be false, vercel will miss the page
      trailing_html: true # Set to false to remove trailing '.html' from permalinks, dont be false, vercel will miss the page
    
    abbrlink:
      alg: crc32  # 算法:crc16(default) and crc32
      rep: hex    # 进制:dec(default) and hex

Example

  • 目录结构

    test
    ├── logo.jpg
    └── rules.jpg
    test.md
  • markdown中的用法,在typora中也能查看图片

    ![logo](test/logo.jpg)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%