Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Community Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT
Community Documentation
Commits
89f79138
Commit
89f79138
authored
5 years ago
by
Peter Mosses
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Optional delay of grandchildren link display"
This reverts commit
8ac545a5
.
parent
5d58a663
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_config.yml
+0
-3
0 additions, 3 deletions
_config.yml
_includes/nav.html
+0
-2
0 additions, 2 deletions
_includes/nav.html
docs/navigation-structure.md
+0
-14
0 additions, 14 deletions
docs/navigation-structure.md
with
0 additions
and
19 deletions
_config.yml
+
0
−
3
View file @
89f79138
...
...
@@ -27,9 +27,6 @@ search_enabled: true
# Enable or disable heading anchors
heading_anchors
:
true
# Restrict display of grandchildren to selected parent when true:
grandchildren_branch
:
false
# Aux links for the upper right navigation
aux_links
:
"
Just
the
Docs
on
GitHub"
:
...
...
This diff is collapsed.
Click to expand it.
_includes/nav.html
+
0
−
2
View file @
89f79138
...
...
@@ -20,7 +20,6 @@
{%- endif -%}
<a
href=
"{{ child.url | absolute_url }}"
class=
"navigation-list-link{% if page.url == child.url %} active{% endif %}"
>
{{ child.title }}
</a>
{%- if child.has_children -%}
{%- if page.url == child.url or page.parent == child.title or site.grandchildren_branch != true -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
<ul
class=
"navigation-list-child-list"
>
{%- for grand_child in grand_children_list -%}
...
...
@@ -30,7 +29,6 @@
{%- endfor -%}
</ul>
{%- endif -%}
{%- endif -%}
</li>
{%- endfor -%}
</ul>
...
...
This diff is collapsed.
Click to expand it.
docs/navigation-structure.md
+
0
−
14
View file @
89f79138
...
...
@@ -191,20 +191,6 @@ This would create the following navigation structure:
+-- ..
```
The current default is that when a grandparent is selected, the links to its
children *and all its grandchildren* are displayed in the navigation menu.
So in the above example, selecting `UI Components` displays the link to
`Button Child Page` as well as the link to `Buttons`.
Setting the following global option in `_config.yml` delays the display of links
to grandchildren until their parent is selected. So selecting `UI Components`
displays only the link to `Buttons`, and the link to `Button Child Page` is
displayed when `Buttons` is selected.
```
grandchildren_branch: true
```
---
## Auxiliary Navigation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment