gethugothemes / bookworm-light-hugo

Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
https://gethugothemes.com/products/bookworm/?utm_source=bookworm_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
100 stars 74 forks source link

direction issue #12

Open shabane opened 2 years ago

shabane commented 2 years ago

hello again. this theme is the best theme ever. but it have some issue for right to left language's like Persion(Farsi). in the other hugo them like cupper we used to add a <div dir'rtl'> at the top of each paragraph and a </div> at the end to show text in the right instead of left. but in this theme this trick doesn't work.

code

Screenshot from 2021-12-24 14-26-40

preview

rtl-issue

shabane commented 2 years ago

@Gnkalk had a persion theme, my he can help us

Gnkalk commented 2 years ago

You can use https://github.com/FOSSFA/bookworm-FE I tried to translate this template as well as I could, but a lot of work doesn't allow me to complete the translation process, you can take a fork of it and complete it.

@shabane @tfsomrat

davidsneighbour commented 2 years ago

In my opinion, the theme needs to be adapted to Bootstrap 5, which has RTL support integrated. Some work needs to be done exchanging left and right padding/margin/floating etc to start and end. After that is should be as easy as flipping a switch to change a layout from rtl to ltr and back.

shabane commented 2 years ago

You can use https://github.com/FOSSFA/bookworm-FE

yes i know your beautiful theme, but i liked this more than the others. i just mention you because i thought may you have some idea to help us for this issue

Gnkalk commented 2 years ago

You can use https://github.com/FOSSFA/bookworm-FE

yes i know your beautiful theme, but i liked this more than the others. i just mention you because i thought may you have some idea to help us for this issue

I have two recommendations :

  1. Menus , Navbar and others be reversed
  2. theme search engine for Persian and Arabic and other RTL languages is not well optimized and does not provide the correct result.