Skip to content

Conversation

@simonkimi
Copy link

What does it do?

I added a configuration option post_extensions to address the issue where only posts with the same extension as new_post_name are rendered when post_asset_folder: true.

To resolve this, simply add the file extensions into this configuration to enable rendering, which is useful for handling posts in multiple different file formats.

When post_extensions is not filled in or is empty, the rendering method remains the same as before to ensure compatibility.

fix #5523

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

@github-actions
Copy link

How to test

git clone -b master https://github.com/simonkimi/hexo.git
cd hexo
npm install
npm test

@coveralls
Copy link

coveralls commented Aug 17, 2024

Pull Request Test Coverage Report for Build 10438819295

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.48%

Totals Coverage Status
Change from base Build 9746148173: 0.0%
Covered Lines: 9373
Relevant Lines: 9422

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After Enabling "post_asset_folder: true", Only One Format of Posts Can Be Rendered

3 participants