-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Add archetype per language #5233
Comments
Do we need the lang flag? Can't the language be guessed by filename/location? Do we need an archetype
|
@regisphilibert I think you need to look at #4535 and #5233 and #5234 in full.
How would your examples look with a content directory per language? (which I think is a more common setup for sites that really need something like this). |
OK, thinking a little about this, this isn't as obvious as I first thought. I think I will get #4535 working properly and see if I get some clarity from that. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Working with #4535 I noticed an issue with archetypes with multiple languages with each its own content directory. I will improve that "what site/language does this content belong to" logic, but to make it non-ambiguous, I will also add a (optional)
--lang
flag:Doing that, it would also be good if each language could have its own set of archetype templates.
Since #4535 introduces a directory-based approach, we should probably prefix these to make them non-ambigous. My suggestion:
/cc @RickCogley @kaushalmodi @regisphilibert @spf13 @anthonyfok and gang.
Note that I plan to wrap this up fairly quickly and include this in a "Revival of The Archetypes #2" release on Monday. There is also the new slice related template funcs that, with Go 1.11, I think we should get out there sooner rather than later. So Monday it is.
The text was updated successfully, but these errors were encountered: