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

Major refactoring #13

Open
375gnu opened this issue Jan 13, 2021 · 5 comments
Open

Major refactoring #13

375gnu opened this issue Jan 13, 2021 · 5 comments

Comments

@375gnu
Copy link
Member

375gnu commented Jan 13, 2021

  1. Page should be written using a template language like Haml instead of HTML. Or at least SSI can be used to simplify inclusion of common parts.

  2. JavaScript should not be used.

@TheLostProbe
Copy link
Contributor

why shouldnt javascript be used?

@375gnu
Copy link
Member Author

375gnu commented Aug 10, 2022

Some users prefer not to use it. Also with modern browsers it's often possible to make dynamic pages without JS, and in case of such pages JS is used only to support old browsers (e.g. Internet Explorer).

@TheLostProbe
Copy link
Contributor

TheLostProbe commented Aug 10, 2022

i suppose that makes sense. nobody uses IE anymore, so it probably wouldnt hurt to drop javascript as long as it can be fully replaced by something else

@TheLostProbe
Copy link
Contributor

not sure if this belongs here, but could we use geolocation to obtain the users location and send them to a version of the website in their local language/dialect? this would require translation of the whole website in a multitude of languages and would also require some javascript, but i think it would be a very useful feature to add. what are your thoughts?

@levinli303
Copy link

we should not use geolocation, but instead use browser locale. one way would be to detect browser locale and redirect user accordingly (needs js), if we do not need to auto switching based on locale, we can provide a language option menu like celestia.mobi. the translation could be implemented in HTML generator free of js.

celestia.mobi uses server side Swift + Plot as the website generator.

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

No branches or pull requests

3 participants