-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Enable "exclude:" and "include:" options for files in asset folder (fix #3881) #3882
Enable "exclude:" and "include:" options for files in asset folder (fix #3881) #3882
Conversation
To clarify, the issue is that currently For example: and |
@curbengh Yes. |
_config.yml
post_asset_folder: true Working:
Tested patterns:
Not working
Tested patterns:
|
@curbengh I think this PR will target to 4.1.1/4.2.0. I think that the fix is not easy because subdirectories of asset folders seem to be not considered right way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current coverage is sufficient for the use case of #3881. Coverage can be improved in future.
@curbengh Thank you your following. |
What does it do?
Fix #3881
exlucde:
option andinclude:
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
).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