Skip to content

Commit

Permalink
Update post_asset.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Mimi <[email protected]>
  • Loading branch information
stevenjoezhang committed Apr 9, 2024
1 parent 7c9e52b commit be99dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/post_asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export = (ctx: Hexo) => {
// PostAsset.path is file path relative to `public_dir`
// no need to urlescape, #1562
// strip /\.html?$/ extensions on permalink, #2134
// Replace backslashes on Windows using posix.join
// Use path.posix.join to avoid path.join introducing unwanted backslashes on Windows.
return posix.join(post.path.replace(/\.html?$/, ''), this.slug);
});

Expand Down

0 comments on commit be99dc8

Please sign in to comment.