hugo: ignoreFiles does not work as documented
I cannot get the example from the documentation of ignoreFiles
to work in a brand new project.
Using Hugo 0.41 on macOS 10.11.6, I created a new site using hugo new site testing
and added the following to config.toml
as per the documentation of ignoreFiles
:
ignoreFiles = [ "\\.foo$", "\\.boo$" ]
The documentation says that this should
cause Hugo to ignore files ending with
.foo
and.boo
when rendering
but when I create a file at the path static/example.foo
and run hugo
, it is copied to public/example.foo
, i.e. not ignored at all.
It seems that either there is a bug in Hugo or the documentation must be updated.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 23 (7 by maintainers)
Commits related to this issue
- Ignore .el files when rendering But it doesn't work currently. We meet the same issue as gohugoio/hugo#4874 did. Signed-off-by: jensenzhang <jingxuan.n.zhang@gmail.com> — committed to snlab/snlab.github.io by fno2010 6 years ago
- Respect ignoreFiles config setting for static files fixes #1559 fixes #4874 — committed to stapelberg/hugo-1 by stapelberg 5 years ago
- Respect ignoreFiles config setting for static files fixes #1559 fixes #4874 — committed to stapelberg/hugo-1 by stapelberg 5 years ago
- Respect ignoreFiles config setting for static files fixes #1559 fixes #4874 — committed to stapelberg/hugo-1 by stapelberg 5 years ago
- Respect ignoreFiles config setting for static files fixes #1559 fixes #4874 — committed to stapelberg/hugo-1 by stapelberg 5 years ago
I’ve sent PR https://github.com/gohugoio/hugo/pull/5649 to address this issue
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the
master
branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.I’m sorry, the stale bot says if we still have the issue on the master branch, to say so. I have done that. Not sure why this needs to be a larger issue.
Stale bots are great, aren’t they? This is still a valid issue and has a PR.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the
master
branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the
master
branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.