Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a243c160
Commit
a243c160
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
unfuck homepage nav links
parent
1582138d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_includes/home-nav.html
+10
-15
docs/_includes/home-nav.html
with
10 additions
and
15 deletions
+10
-15
docs/_includes/home-nav.html
+
10
-
15
View file @
a243c160
...
...
@@ -11,21 +11,15 @@
</div>
<nav
class=
"collapse navbar-collapse bs-navbar-collapse"
role=
"navigation"
>
<ul
class=
"nav navbar-nav"
>
<li
{%
if
page.slug =
=
"
getting-started
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"../getting-started"
>
Getting started
</a>
</li>
<li
{%
if
page.slug =
=
"
css
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"../css"
>
CSS
</a>
</li>
<li
{%
if
page.slug =
=
"
components
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"../components"
>
Components
</a>
</li>
<li
{%
if
page.slug =
=
"
js
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"../javascript"
>
JavaScript
</a>
</li>
<li
{%
if
page.slug =
=
"
customize
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"../customize"
>
Customize
</a>
</li>
{% for group in site.data.nav %}
{% assign link = group.pages | first %}
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"{{ site.baseurl }}{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' }}"
>
{{ group.title }}
</a>
</li>
{% endfor %}
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
href=
"{{ site.expo }}"
onclick=
"ga('send', 'event', 'Navbar', 'Community links', 'Expo');"
>
Expo
</a></li>
...
...
@@ -34,3 +28,4 @@
</nav>
</div>
</header>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment