-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Anchor Link Request] Main Navigation override with custom links #110
Comments
I am considering the following alternatives:
|
A perfect example: Like: Navigation Structure: ^ On left side / main nav under Navigation Structure |
This is not something we will support out-of-the-box at this time. |
@Corey-Albright-OnTheClock I absolutely had to have the ability to navigate between markdown anchor links from child navigation items in the main menu as well. After a lot of trial and error, I figured out a way to do this without reloading the current parent view. I have twice as many anchor sections under Core Concepts than listed here. So, naturally, I wanted to improve navigation to each section without separating each section into its own markdown file OR having to reload the page to link to these section in the child menu navigation. (just as you have described) My menu structure looks like this:
My SolutionGiven the above structure, my solution was to create a folder sectionAnchors in the same file location of the parent navigation page coreConcepts.md. Then, I created the empty (except config) markdown files with for each of the sections inside the sectionAnchors folder. The key here is to NOT provide a layout in the placeholder empty config child sectionAnchors markdown files as shown below in the dataFlow.md example. coreConcepts.md (Parent)---
layout: page
title: Core Concepts
permalink: /about/concepts
parent: About
nav_order: 2
has_children: true
---
## Data Flow
A ton of text and explanations of how to understand the data flow.
dataFlow.md (coreConcepts's child anchor link)---
title: Data Flow
permalink: /about/concepts#data-flow
parent: Core Concepts
nav_order: 1
---
NoteLocal and published anchor permalinks seem to behave slightly differently for some reason and require an extra Published: Github Pages
Local:
|
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I am trying to do inline links that appear on left navigation bar, so that when I click a link. It then scrolls to the heading level of 2.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Looking for main navigation anchor links
Anchor Links
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I have thought about editing the main nav html
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: