imfing / hextra

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

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

Closed nisrulz closed 1 month ago

nisrulz commented 1 month 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 1 month 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
imfing commented 1 month ago

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.

feel free to override the default layout where you could specify different variable

https://imfing.github.io/hextra/docs/advanced/customization/#custom-layouts