Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does hugo-prose support multiple level header menu? #45

Open
gaospecial opened this issue Aug 9, 2023 · 1 comment
Open

Does hugo-prose support multiple level header menu? #45

gaospecial opened this issue Aug 9, 2023 · 1 comment

Comments

@gaospecial
Copy link
Contributor

gaospecial commented Aug 9, 2023

I create a folder about and placed two markdown files: file1.md and file2.md in it. So is it possible to add a menu about with two subitem file1 and file2?

Where should I check to understand the underlying mechanism of menu integration in this theme?

@yihui
Copy link
Owner

yihui commented Aug 21, 2023

It's possible but the CSS might be a little complicated. To define a menu item with children, the child items need to declare their parent. The documentation is here: https://gohugo.io/content-management/menus/ I don't have much experience here, so you may need to find the CSS by yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants