Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Default language doesn't reside on it's own folder #103

Open
andreamoro opened this issue Sep 17, 2017 · 4 comments
Open

Default language doesn't reside on it's own folder #103

andreamoro opened this issue Sep 17, 2017 · 4 comments

Comments

@andreamoro
Copy link

andreamoro commented Sep 17, 2017

Apologies for repeating something known if any, but I'm fairly new to Jekyll. Currently using 3.5.2, which I noticed has not been mentioned as supported as of yet.

I need the default language - which I assume to be the first one listed in the collection - to reside under it's own separate folder.
In my case I've a ["it", "en"] collection, but only the "en" subfolder is created under the _site subfolder.

Any idea?

@emmerich
Copy link

emmerich commented Dec 2, 2017

Yep, I had the same problem. It's an implementation detail of the library. I got around by specifying:

["en", "en", "fr"]

This generates a folder en and fr, and also generates the "default" files as en. Hope this helps.

@ygd
Copy link

ygd commented Mar 20, 2018

would be cool if there is a more elegant way to handle this.

eg. you have subfolder_for_default_lang: true in your config and it generates subfolders for all languages. Nice would be if / would redirect to /default_lang via <meta http-equiv="refresh" content="0; URL=/default_lang/">

@levino
Copy link

levino commented Apr 3, 2019

All languages should be in subfolders. It makes no sense to have a "special role" for the default language. One should use forwarding based on user agent from the domain.com/home to domain.com/language/home.

@bpatra
Copy link

bpatra commented Apr 3, 2019

Could be duplicated with #86
See the Klassnotfound fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants