Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Open WIN Community
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
open-science
community
Open WIN Community
Commits
d7050b3f
Commit
d7050b3f
authored
4 years ago
by
marksie1988
Browse files
Options
Downloads
Patches
Plain Diff
change to relative_url
parent
5915b2fe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_includes/head.html
+4
-4
4 additions, 4 deletions
_includes/head.html
_includes/nav.html
+5
-5
5 additions, 5 deletions
_includes/nav.html
with
9 additions
and
9 deletions
_includes/head.html
+
4
−
4
View file @
d7050b3f
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
{% endif %}
{% endif %}
{% endif %}
{% endif %}
<link
rel=
"shortcut icon"
href=
"{{ 'favicon.ico' |
absolut
e_url }}"
type=
"image/x-icon"
>
<link
rel=
"shortcut icon"
href=
"{{ 'favicon.ico' |
relativ
e_url }}"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"{{ '/assets/css/just-the-docs.css' |
absolut
e_url }}"
>
<link
rel=
"stylesheet"
href=
"{{ '/assets/css/just-the-docs.css' |
relativ
e_url }}"
>
{% if site.ga_tracking != nil %}
{% if site.ga_tracking != nil %}
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"
></script>
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"
></script>
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
{% endif %}
{% endif %}
{% if site.search_enabled != false %}
{% if site.search_enabled != false %}
<script
type=
"text/javascript"
src=
"{{ '/assets/js/vendor/lunr.min.js' |
absolut
e_url }}"
></script>
<script
type=
"text/javascript"
src=
"{{ '/assets/js/vendor/lunr.min.js' |
relativ
e_url }}"
></script>
{% endif %}
{% endif %}
<script
type=
"text/javascript"
src=
"{{ '/assets/js/just-the-docs.js' |
absolut
e_url }}"
></script>
<script
type=
"text/javascript"
src=
"{{ '/assets/js/just-the-docs.js' |
relativ
e_url }}"
></script>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
...
This diff is collapsed.
Click to expand it.
_includes/nav.html
+
5
−
5
View file @
d7050b3f
...
@@ -6,24 +6,24 @@
...
@@ -6,24 +6,24 @@
{%- if node.parent == nil -%}
{%- if node.parent == nil -%}
<li
class=
"navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}"
>
<li
class=
"navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}"
>
{%- if page.parent == node.title or page.grand_parent == node.title -%}
{%- if page.parent == node.title or page.grand_parent == node.title -%}
{%- assign first_level_url = node.url |
absolut
e_url -%}
{%- assign first_level_url = node.url |
relativ
e_url -%}
{%- endif -%}
{%- endif -%}
<a
href=
"{{ node.url |
absolut
e_url }}"
class=
"navigation-list-link{% if page.url == node.url %} active{% endif %}"
>
{{ node.title }}
</a>
<a
href=
"{{ node.url |
relativ
e_url }}"
class=
"navigation-list-link{% if page.url == node.url %} active{% endif %}"
>
{{ node.title }}
</a>
{%- if node.has_children -%}
{%- if node.has_children -%}
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
<ul
class=
"navigation-list-child-list "
>
<ul
class=
"navigation-list-child-list "
>
{%- for child in children_list -%}
{%- for child in children_list -%}
<li
class=
"navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}"
>
<li
class=
"navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}"
>
{%- if page.url == child.url or page.parent == child.title -%}
{%- if page.url == child.url or page.parent == child.title -%}
{%- assign second_level_url = child.url |
absolut
e_url -%}
{%- assign second_level_url = child.url |
relativ
e_url -%}
{%- endif -%}
{%- endif -%}
<a
href=
"{{ child.url |
absolut
e_url }}"
class=
"navigation-list-link{% if page.url == child.url %} active{% endif %}"
>
{{ child.title }}
</a>
<a
href=
"{{ child.url |
relativ
e_url }}"
class=
"navigation-list-link{% if page.url == child.url %} active{% endif %}"
>
{{ child.title }}
</a>
{%- if child.has_children -%}
{%- if child.has_children -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
<ul
class=
"navigation-list-child-list"
>
<ul
class=
"navigation-list-child-list"
>
{%- for grand_child in grand_children_list -%}
{%- for grand_child in grand_children_list -%}
<li
class=
"navigation-list-item {% if page.url == grand_child.url %} active{% endif %}"
>
<li
class=
"navigation-list-item {% if page.url == grand_child.url %} active{% endif %}"
>
<a
href=
"{{ grand_child.url |
absolut
e_url }}"
class=
"navigation-list-link{% if page.url == grand_child.url %} active{% endif %}"
>
{{ grand_child.title }}
</a>
<a
href=
"{{ grand_child.url |
relativ
e_url }}"
class=
"navigation-list-link{% if page.url == grand_child.url %} active{% endif %}"
>
{{ grand_child.title }}
</a>
</li>
</li>
{%- endfor -%}
{%- endfor -%}
</ul>
</ul>
...
...
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