Skip to content

Commit

Permalink
Add changes for Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Lester3 committed Dec 4, 2024
1 parent 09500a3 commit 3a9a1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EssentialCSharp.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,19 @@
'toc-content' : item.level==0,
'nested' : item.level>
0,
'current-section': currentPage.some(p => p.key == item.key),
'current-section': currentPage.some(p => JSON.stringify(p.keys) == JSON.stringify(item.keys)),
}" :href="item.href">{{item.title}}
</summary>
<ul>
<li :class="{
['indent-level-' + (item.level+1)]: true,
'current-li' : currentPage.some(p=>
p.key == item.key) && !currentPage.some(p => p.level > item.level),
JSON.stringify(p.keys) == JSON.stringify(item.keys)) && !currentPage.some(p => p.level > item.level),
}" >
<a class="section-link" :class="{
['indent-level-' + (item.level+1)]: true,
'current-section' : currentPage.some(p=>
p.key == item.key) && !currentPage.some(p => p.level > item.level),
JSON.stringify(p.keys) == JSON.stringify(item.keys)) && !currentPage.some(p => p.level > item.level),
}" :href="item.href"> Introduction
</a>
</li>
Expand All @@ -307,7 +307,7 @@
<li v-else :class="{
['indent-level-' + (item.level+1)]: true,
'current-li' : currentPage.some(p=>
p.key == item.key) && !currentPage.some(p => p.level > item.level),
JSON.stringify(p.keys) == JSON.stringify(item.keys)) && !currentPage.some(p => p.level > item.level),
}" >
<a class="section-link" :class="{
['indent-level-' + (item.level)]: true,
Expand Down

0 comments on commit 3a9a1ca

Please sign in to comment.