imfing / hextra

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

Make / page in docs mode visible in Menu #392

Open ZeroHans4 opened 6 months ago

ZeroHans4 commented 6 months ago

Feature Description

I would like when in docs mode to have the / page as a clickable item in the sidebar.

For example, docs.test.com it should be active.

Problem/Solution I can't find a way to make it possible. Because even when manually adding it

`title: Documentation Overview cascade: type: docs

menu: sidebar:

weight: 1
exclude: false

URL: /

`

It is still below all the folders and pages.

Alternatives Considered

I have created an /overview.md page and then use Cloudflare to redirect all requests from / to /overview But this is not cool at all

I also tried modifying the files via the layouts/partials, but there are so many dependencies I would need to apply many more files to get it working there.

Additional Context

If there is any way to do this, please let me know.

imfing commented 6 months ago

This is not supported out-of-the-box yet. I have a PR in progress to make the sidebar more configurable.

Meanwhile, you may override the sidebar template to achieve this.