Skip to content

Commit

Permalink
fix: fix l2 sections with same name (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jcahilltorre authored May 30, 2023
1 parent 461cece commit 3830619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ <h3>
<li class="nginx-toc-link l2">
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle"
aria-expanded="false" data-toggle="collapse"
href="#{{.Section | urlize}}--{{.Title | urlize}}">
href="#{{.Section | urlize}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}">
<i class="fa fa-sm fa-fw fa-chevron-right"></i><i
class="fa fa-sm fa-fw fa-chevron-down"></i>{{ .Title }}</a>
</li>
<ul>
</div>
<div id="{{.Section | urlize}}--{{.Title | urlize}}" class="accordion-body collapse leaf">
<div id="{{.Section | urlize}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}" class="accordion-body collapse leaf">
<div class="accordion-inner">
{{ range .Sections }}
<div class="accordion" id="Accordion3">
Expand Down

0 comments on commit 3830619

Please sign in to comment.