I want to show acive links in the navigation bar. I see the active link, but the pages don’t change. Here is a part from my footer. I don’t know why it doesn’t work. Has someone a solution without javascript?
Ok, looking at the css, the active class is there and looks like:
.active {
background-color: rgba(0,0,0,0.24);
}
The only thing I notice that is different, is your three footer pages are just in the root of content, while the others are in subfolders. I use config.toml menu specifications only when I need a link other than the pages I have. Otherwise, I specify inside the markdown files, like:
For instance, if you wanted to link to something outside your pages, you could specify that in config.toml, but as for the pages you have, I would say specifying inside the page’s frontmatter is the best way.
Say you had some other gov’t site you want to link in the footer. You could do it like this:
I installed the menus as suggested by Rick and they work flawlessly. If I click on the link Handbook in the Navbar, /handbook/toc will appear. But if I call in the browser /handboook, then the index page appears. But when I /handbook calls, I want the content of Siete toc.md to be displayed. I renamed toc.md to index.md and _index.md. Unfortunately, the result is always a list page. Maybe I should create a folder /layout /handbook/ index.html? The content of index.html is that of single.html.