Comments (10)
Thanks for the reply. I was able to get it working! The modification turned out to be quite simple. I now have submenus (but not submenus in submenus). They are specified using the parent field.
I attach my modification for anyone interested in the future: navbar.html
from hugo-blox-builder.
Academic doesn't support sub-menus. The general philosophy with the theme is to keep the interface simple, so this feature probably won't be added anytime soon.
You can customize the navigation bar for your purpose by copying themes/academic/layouts/partials/navbar.html
to layouts/partials/navbar.html
(relative to the root of your site). Your version of the navigation file will then override Academic's file.
from hugo-blox-builder.
Thanks for sharing your modification @kepiej . I just tested it out - the required code changes for the feature are more minimal than I expected and it doesn't break compatibility with the existing example site menu or the active link highlighter (Bootstrap scroll spy). Thus, I've had a change of mind and will integrate it shortly 😃
from hugo-blox-builder.
Great to hear! Happy to help and thanks for incorporating this! :)
from hugo-blox-builder.
Thanks for the reply. I was able to get it working! The modification turned out to be quite simple. I now have submenus (but not submenus in submenus). They are specified using the parent field.
I attach my modification for anyone interested in the future: navbar.html
@kepiej Please tell me after you've done navbar.html how did you make submenu in menus.toml?
from hugo-blox-builder.
Thanks for the reply. I was able to get it working! The modification turned out to be quite simple. I now have submenus (but not submenus in submenus). They are specified using the parent field.
I attach my modification for anyone interested in the future: navbar.html
@kepiej Please tell me after you've done navbar.html how did you make submenu in menus.toml?
Have a look at my repo: https://github.com/rodrigoalcarazdelaosa/rodrigoalcarazdelaosa.me where I use submenus
from hugo-blox-builder.
Thanks for the reply. I was able to get it working! The modification turned out to be quite simple. I now have submenus (but not submenus in submenus). They are specified using the parent field.
I attach my modification for anyone interested in the future: navbar.html
@kepiej Please tell me after you've done navbar.html how did you make submenu in menus.toml?
Have a look at my repo: https://github.com/rodrigoalcarazdelaosa/rodrigoalcarazdelaosa.me where I use submenus
@rodrigoalcarazdelaosa I saw it, thank you very much. But I didn't find navbar.html file in your layouts/partials/?
from hugo-blox-builder.
Thanks for the reply. I was able to get it working! The modification turned out to be quite simple. I now have submenus (but not submenus in submenus). They are specified using the parent field.
I attach my modification for anyone interested in the future: navbar.html
@kepiej Please tell me after you've done navbar.html how did you make submenu in menus.toml?
Have a look at my repo: https://github.com/rodrigoalcarazdelaosa/rodrigoalcarazdelaosa.me where I use submenus
@rodrigoalcarazdelaosa I saw it, thank you very much. But I didn't find navbar.html file in your layouts/partials/?
That feature was added years ago 😉. No need to add any custom partial
from hugo-blox-builder.
@rodrigoalcarazdelaosa I understand, thank you again 👍
from hugo-blox-builder.
Even after reading this issue I didn't realize this was a working feature without custom partials. I was really happy to discover it is baked in!
I think it might be good to add a "how to edit the menu" docs page to the wowchemy docs or possibly modify the example academic template to include a simple submenu so the functionality is demonstrated.
from hugo-blox-builder.
Related Issues (20)
- Update documentation https://docs.hugoblox.com/reference/extend/ HOT 1
- Deploy to GitHub Pages failed!
- The webpage cannot be deployed with the Node.js 16 HOT 1
- blox-bootstrap: Bilibili videos cannot show HOT 2
- Landing-page theme basically lands to the same page , just with the user's name. How can I correct this?
- improve docs: show examples of using icons in code (markdown) HOT 3
- Support Devicon HOT 2
- missing reddit icon on Hugo Blox suggested code HOT 2
- Icon SVG is not loaded
- Add Strava to brands icon pack HOT 3
- Hugo v0.123.1 breaks sites HOT 3
- fix the docs: staticref shortcode missing? HOT 1
- fix docs: list_children missing? HOT 1
- highlight self name in authors list when importing from bibtex HOT 3
- All three map providers supported by Hugo are not available in China HOT 1
- Dark mode breaks highlighting lines in code blocks HOT 8
- Problem with deployment on GitHub Pages (Node.js 16) HOT 1
- filter will not work on hugo v0.123.7 HOT 1
- Add Google Scholar expected meta tags to publication pages HOT 2
- Add slider to gallery block HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-blox-builder.