-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature: use-case example for a standard multilingual site #5
Comments
+ 1 |
In a real scenario though, in the German section would not necessarily have English names. I agree though that we should have an option between separate folders or file suffix |
I'd combine it with the permalinks plugin. Should be doable and smarter. |
Fair enough. We'll add it in |
Indeed, the permalinks plugin would make this easy I think. Especially since you can use lodash templates for variables in the front-matter, then use those variables to build the destination paths dynamically. e.g In the front-matter: ---
foo: <%= bar %>
--- and in the config: assemble: {
site: {
options: {
permalinks: {
structure: ':foo/:basename:ext'
}
},
files: []
}
} |
@jonschlinkert great stuff, thanks for the comment! I'll play around and probably come back with some additional ideas/reports. |
👍 |
I'm really impressed by the collective effort! @doowb what is the plan for this? There's a strong push in my project to adopt this ASAP |
🍻 This is the exact output structure I am looking for as well. |
I think we can close this since it is covered by permalinks? |
Agreed, I'll close. Please reopen if it seems this isn't resolved. |
Note: we should still create reasonable README with this in mind so devs can pick up the permalinks reference from there. It'll save a few tickets in the long run, I'm sure. |
yeah I think a good readme will be important. |
Pushing another idea for a documentation feature.
Currently the rough example case puts files into the distribution folders as per tasks defined in Gruntfile.
In real-life scenario though, it's often desirable to have a single template-base and publish it to different langauges automatically. Also given, that it'd be nice to have it automatically populated based on
i18n.json
, in the circumstances. So the distribution structure would be:and so on.
I think it would make a whole lot of sense to produce an example based on this scenario.
The text was updated successfully, but these errors were encountered: