Skip to content

Commit

Permalink
now clicking same link will keep you at same place
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Jul 6, 2024
1 parent c5eafd3 commit 7a4fdd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/_includes/lhn-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
{% for platform in site.data.routes.platforms %}
{% if platform.href == activePlatform %}
<li>
<a href="/" class="icon-with-link selected">
<img src="/assets/images/down.svg" class="base-icon"></img>
<div class="icon-with-link selected">
<a href="/"><img src="/assets/images/down.svg" class="base-icon"></img></a>
<span>{{ platform.title }}</span>
</a>
</div>
{% for hub in platform.hubs %}
<ul>
{% if hub.href == activeHub %}
<a href="/{{ activePlatform }}/hubs/" class="icon-with-link selected">
<img src="/assets/images/down.svg" class="base-icon"></img>
<div class="icon-with-link selected">
<a href="/{{ activePlatform }}/hubs"><img src="/assets/images/down.svg" class="base-icon"></img></a>
<span>{{ hub.title }}</span>
</a>
</div>
<ul class="nested-treeview">
{% for section in hub.sections %}
<li>
{% if section.href == activeSection %}
<a href="/{{ activePlatform }}/hubs/{{ hub.href }}" class="icon-with-link selected">
<img src="/assets/images/down.svg" class="base-icon"></img>
<div class="icon-with-link selected">
<a href="/{{ activePlatform }}/hubs/{{ hub.href }}"><img src="/assets/images/down.svg" class="base-icon"></img></a>
<span>{{ section.title }}</span>
</a>
</div>
<ul>
{% for article in section.articles %}
{% assign article_href = section.href | append: '/' | append: article.href %}
Expand Down
1 change: 1 addition & 0 deletions docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ button {
width: 20px;
height: 20px;
cursor: pointer;
display: inline-block;
}

.homepage {
Expand Down

0 comments on commit 7a4fdd9

Please sign in to comment.