Skip to content

Commit

Permalink
Style fix to ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
x1y committed Oct 12, 2024
1 parent 75c9157 commit d2cb814
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions themes/pinetheme/layouts/partials/doc-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ <h3>Table of contents</h3>
{{ else if isset .Params "full_section" }}

{{ $section := .Site.GetPage "section" (printf "/documentation/%s/" .Params.full_section) }}


<h3>Table of contents</h3>
<ul>
{{ range $section.Pages.ByParam "menu.docs.weight"}}
<ul>

{{ if .TableOfContents }}

<li>
<strong>
<a href="#{{ .Title | anchorize }}">{{ .Title }}</a>
</strong>
{{ .TableOfContents }}
</li>

{{ end }}
</ul>
{{ end }}
</ul>

{{ else }}

Expand Down

0 comments on commit d2cb814

Please sign in to comment.