Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkimi committed Aug 18, 2024
1 parent 01ec2c3 commit d15fcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/processor/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export = (ctx: Hexo) => {
// checks only if there is a renderer for the file type or if is included in skip_render
result.renderable = ctx.render.isRenderable(path) && !isMatch(path, ctx.config.skip_render);

// if post_asset_folder is set, restrict renderable files to default file extension
// if post_asset_folder is set, restrict renderable files to post_extensions or the default file extension
if (result.renderable && ctx.config.post_asset_folder) {
if (!Array.isArray(ctx.config.post_extensions) || ctx.config.post_extensions.length === 0) {
result.renderable = (extname(ctx.config.new_post_name) === extname(path));
Expand Down

0 comments on commit d15fcd9

Please sign in to comment.