-
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
Multiple permalinks per collection #17
Comments
👍 I need as well and there doesn't appear to be a way available with the plugin currently. However, I've modified my copy to support it when provided options in the following format:
Gist: https://gist.github.com/misterdai/84fa94cd382e66262357 The modification simply checks for a permalink rule that matches the collection name or it'll default to the wildcard I think collection based permalinks may be better as a separate plugin, but I'll leave it up to @ianstormtaylor to decide that :) |
Just came here on a somewhat related issue and noticed this. I had problems with it for a while, but the solution I went with was to use
My problem now is how to handle relative files to bring them over in nested folders, but I'll open another issue for that. |
Hello, so it's been a while since I asked that question and digging deeper into Metalsmith just gave me indication that I didn't treat it as it supposed to be. Here is what I've done to solve my problem.
Thus, this plugins does it's job correctly, and it is job of other similarly simple and straightforward plugins to do the rest. Simplicity is a king in Metalsmith, I'm loving it.. |
Hello, how do I "map" different permalinks on different collections. For examples I want blog posts to have
/YYYY/MM/post-title
formatting and regular pages to have/page-title
permalink.posts
andpages
are different collections of course.Thanks!
The text was updated successfully, but these errors were encountered: