You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exlucde: option and include: option in _config.yml is no effect for files in Asset Folder.
These are only effect for files outside of source/_post/
(such as source/foo.jpg, source/foo/bar.jpg).
Coverage increased (+0.002%) to 97.148% when pulling 4775a2c on seaoak:feature/enable-exclude-and-include-options-for-files-in-asset-folder into 2146a03 on hexojs:master.
@curbengh Yes.
This patch is only for asset files, not for post itself.
To exclude a post, skip_render: option should be used (as described in the sample code in the document).
We are planning to release 4.1.0, do you think you can fix the exclude: '**/img/*.txt' in time?
I don't mind including this PR with that shortcoming in 4.1.0 (since this PR at current stage already sufficient for #3881), and then address it later in 4.1.1/4.2.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does it do?
Fix #3881
exlucde:option andinclude:option in_config.ymlis no effect for files in Asset Folder.These are only effect for files outside of
source/_post/(such as
source/foo.jpg,source/foo/bar.jpg).This behavior does not match its document.
https://hexo.io/docs/configuration#Include-Exclude-Files-or-Folders
This patch fixes this behavior.
How to test
Pull request tasks