-
Notifications
You must be signed in to change notification settings - Fork 180
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
Support i18n mount_at_root option in permalinks #364
Comments
Hello, Is there anything I forgot? Thank you. Regards |
You don't need to run
We won't be publishing this hack as a gem. Since we'd rather have |
ℹ️ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
It would be great if Middleman Blog could handle the
mount_at_root
option given by the:i18n
extension. For example by providing an option to prepend the i18n path root to the articles permalinks.In one of our projects we have a configuration like this:
With this configuration all german ("de") pages are mounted at root, but the german blog posts are found under
/de/blog/…
So for reaching our goal, that the blog posts can be found under
/blog/…
while the english blog posts remain at/en/blog/…
, we use the following configuration and prepend the i18n path root within our own extension:This is the extensions code: https://gist.github.com/pmk1c/f192dd30edba2a25c9f352d1e8df8234
So one way for Middleman Blog to fully support
:i18n
could be to add a configuration option, that prepends the i18n path root to the permalinks of the articles. Leading to a configuration like this:But maybe there are better options to support
mount_at_root
. I'm open for discussion and I'd like to send a PR for this, if we find a solution.The text was updated successfully, but these errors were encountered: