-
Notifications
You must be signed in to change notification settings - Fork 904
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
RTL (Right-to-Left) support for special languages as in Arabic, Persian, Hebrew, etc #253
Comments
The template itself doesn't but it looks like it would be fairly straightforward to add with Hugo. If you have Hugo 0.68.0 or later you can specify in your config file whether the language direction is rtl, like so: ...and then check on that before including your CSS. The language direction param is very new so I haven't seen any examples yet.... The Docsy project CSS lives as SCSS files in /assets/scss/ - depending on how different you'd need the CSS to be for RTL, you could create a separate main-rtl.scss that includes any special versions of the subfiles you need for rtl styling, and then do the check for whether the current language is RTL in /layouts/partials/head-css.html |
We now have RTL support for Persian thanks to @theSinner, including RTL CSS! Please update if there's anything else you need - users will probably need to update the CSS to say they want to use the RTL styling for languages other than (fa) Fixed in #379 (I think) |
Fixed in #395! Great work! |
Is there any official support for RTL?
Where should we put a rtl.css file? and how it should be pointed to in config file?
The text was updated successfully, but these errors were encountered: