imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
600 stars 147 forks source link

[Feature Request] Allow to disable sidebar along with placeholder empty space. #466

Open nisrulz opened 2 hours ago

nisrulz commented 2 hours ago

When setting up as a blog, the pages could make use of empty sidebar area to fit more content onscreen.

When I search in codebase, I can find some variable that will allow to do so, but I cannot change it via the config file.

This makes sense only in the case TOC is visible, otherwise the empty space is desired as without TOC the page will then need to be centered.

Incase TOC shows up, the sidebar placeholder empty space should be removed/hidden.

Screenshot 2024-09-30 at 23 14 24
nisrulz commented 2 hours ago

I was able to override the implementation by duplicating the layout/blog/single.html and changing the line as below:

Screenshot 2024-09-30 at 23 26 47

Would be nice if this can be done via the config somehow. Maybe in the page itself on demand, like we can do for toc.

My understanding was that if set the Page Width to full this would work out of the box. But this doesn't happen. So could it be that this is a bug?

Screenshot 2024-09-30 at 23 27 57