alex-shpak / hugo-book

Hugo documentation theme as simple as plain book
https://hugo-book-demo.netlify.app
MIT License
3.38k stars 1.17k forks source link

Add support to center docs #573

Open Nrosa01 opened 9 months ago

Nrosa01 commented 9 months ago

Current implementation works from left to right.

Custom shortcodes like tabs, details and so don't work well with

, it also fails for tables. Using custom shortcodes makes the ToC dissapear. It would be a nice feature to have this out of the box as a simple config in the .toml

alex-shpak commented 7 months ago

Hi! Sorry for late reply? can you please elaborate, I use left-to-right direction, so might not catch all use-cases

Nrosa01 commented 6 months ago

To put an easy example, if you use

in vscode markdown and you put a table there, the whole table gets centered. In this Hugo template it doesn't (using any of those also breaks ToC for some reason). I also tried custom shortcodes like these ones: https://discourse.gohugo.io/t/how-to-center-text/22070

If it's not clear I can attach images of what I get versus what I expect/want. It could also be that I'm using this template in a way it was not intended 😅