Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

1.0.0版本的代码对link的处理存在问题 #51

@JxSx

Description

@JxSx

1.0.0版本17-26行代码如下:

    if(/.*\/index\.html$/.test(link)) {
      // when permalink is end with index.html, for example 2019/02/20/xxtitle/index.html
      // image in xxtitle/ will go to xxtitle/index/
      appendLink = 'index/';
      var endPos = link.lastIndexOf('/');
    }
    else {
      var endPos = link.lastIndexOf('.');
    }
    link = link.substring(beginPos, endPos) + '/' + appendLink;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions