-
Notifications
You must be signed in to change notification settings - Fork 67
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
The plugin should ignore files with empty metadata ? #22
Comments
With v2.4.0 optional path parts became available. Ideally permalinks would log a warning that a matched file misses a path parameter value. |
In my case, the metalsmith-permalinks plugin runs after other plugins which are adding to my
homepage (/index.html) some YAML metadata this way:
and the pattern is
':collection/:filename'
. The result is that the homepage is moved to /index/index.html because thereplace(pattern, data, options)
function finds all the metadata it needs, even though the metadata is empty.I managed to make it work by adding
to my homepage.
Maybe I'm wrong, but I wonder if the permalinks plugin should consider 'empty metadata' just like 'no metadata'
The text was updated successfully, but these errors were encountered: