|
4 | 4 | <a href="{{ site.baseurl }}/get-started">Get Started</a>
|
5 | 5 | </li>
|
6 | 6 |
|
7 |
| - <li class="main-menu-item {% if current[1] == 'ecosystem' or current[1] == 'hub' %}active{% endif %}"> |
| 7 | + <li class="main-menu-item {% if current[1] == 'ecosystem' %}active{% endif %}"> |
8 | 8 |
|
9 | 9 | <div id="dropdownMenuButton" data-toggle="ecosystem-dropdown" class="ecosystem-dropdown">
|
10 |
| - <a class="ecosystem-option with-right-white-arrow"> |
| 10 | + <a class="ecosystem-option" href="{{ site.baseurl }}/ecosystem"> |
11 | 11 | Ecosystem
|
12 | 12 | </a>
|
13 |
| - <div class="ecosystem-dropdown-menu"> |
14 |
| - <a class="nav-dropdown-item" href="{{ site.baseurl }}/hub"> |
15 |
| - <span class=dropdown-title>Models (Beta)</span> |
16 |
| - <p>Discover, publish, and reuse pre-trained models</p> |
17 |
| - </a> |
18 |
| - <a class="nav-dropdown-item" href="{{ site.baseurl }}/ecosystem"> |
19 |
| - <span class=dropdown-title>Tools & Libraries</span> |
20 |
| - <p>Explore the ecosystem of tools and libraries</p> |
21 |
| - </a> |
22 |
| - </div> |
23 | 13 | </div>
|
24 | 14 | </li>
|
25 | 15 |
|
|
39 | 29 | <a href="{{ site.baseurl }}/docs">Docs</a>
|
40 | 30 | </li>
|
41 | 31 |
|
42 |
| - <li class="main-menu-item {% if current[1] == 'resources' or current[1] == 'features' %}active{% endif %}"> |
| 32 | + {% assign resources = "resources, features, hub" | split: ", " %} |
| 33 | + |
| 34 | + <li class="main-menu-item {% if resources contains current[1] %}active{% endif %}"> |
43 | 35 |
|
44 | 36 | <div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
|
45 | 37 | <a class="resource-option with-right-white-arrow">
|
|
54 | 46 | <span class=dropdown-title>About</span>
|
55 | 47 | <p>Learn about PyTorch’s features and capabilities</p>
|
56 | 48 | </a>
|
| 49 | + <a class="nav-dropdown-item" href="{{ site.baseurl }}/hub"> |
| 50 | + <span class=dropdown-title>Models (Beta)</span> |
| 51 | + <p>Discover, publish, and reuse pre-trained models</p> |
| 52 | + </a> |
57 | 53 | <a class="nav-dropdown-item" href="{{ site.baseurl }}/#community-module">
|
58 | 54 | <span class=dropdown-title>Community</span>
|
59 | 55 | <p>Join the PyTorch developer community to contribute, learn, and get your questions answered.</p>
|
|
0 commit comments