Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: after enabling "post_asset_folder: true", only one format of posts can be rendered #5531

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

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