Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to put the default language in a subfolder? #86
This is a fantastic plugin - thank you so much for creating it!
One thing that I was unable to figure out is how to configure the plugin so that all the languages (including the default language) end up in a subfolder.
Is this possible?
Since the plugin doesn't seem to support this, I have hacked together a basic solution. I had to learn some Ruby (and the basics of Jekyll plugins) first, so it's probably not the prettiest approach. But it's working.
To use it, you need to install the plugin manually. If you were using the installed version of the plugin before, be sure to remove the old plugin gems entry from your
The modified version does three things:
In a nutshell, when using the modified plugin you should be able to run
Note: The modified plugin is currently incompatible with the original (I had to remove and alter some code that relied on the default language being in the root folder), which is why I didn't crate a pull request. As of now, I don't have the time and/or Ruby/Jekyll expertise to reconcile the two approaches, but I'm hoping some of the more experienced contributors can pick it up from here. A basic flag in the
@aumars Yeah, that would be the right thing to do... Unfortunately I currently don't have the time or Ruby skills to work on it.
I forgot to mention that I wrote a small blog post on how to use the modified plugin:
It provides a bit more detail on how to set up a new site and what to watch out for when using GitHub Pages and i18n.