Skip to content
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

Investigate content negotiation in Jekyll #248

Open
tidoust opened this issue Apr 26, 2018 · 1 comment
Open

Investigate content negotiation in Jekyll #248

tidoust opened this issue Apr 26, 2018 · 1 comment

Comments

@tidoust
Copy link
Member

tidoust commented Apr 26, 2018

See context in #68 (comment).

It would be good to enable content negotiation for roadmaps published on GitHub Pages so that e.g. users get the Chinese version when Chinese is their primary language. GitHub Pages use Jekyll under the hoods, so goal is to check whether that can be done in Jekyll.

This may require switching to different naming conventions for HTML files, which we may or may not want to do.

@tidoust
Copy link
Member Author

tidoust commented Jun 27, 2018

Not sure what I had in mind when I created that issue but GitHub Pages is a static page hosting service and does not support customer server configuration files, so the only thing that we can hope to achieve for content negotiation would be at the HTML level, e.g. through an <meta http-equiv="refresh"> tag, but more likely through JS (since we want to redirect based on the browser's locale). Jekyll won't help us for that.

In other words, the solution for GitHub Pages would be to have an "empty" generic page that redirects to the right version using JS. I'm not really crazy about introducing that first empty page and about requiring support for JS (we could fallback to redirecting to the English version with a meta tag after a couple of seconds though).

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

No branches or pull requests

1 participant