Skip to content

Commit

Permalink
Merge branch 'main' into updateFontAwesome
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui authored Aug 12, 2022
2 parents 424599a + f8e4409 commit fb49386
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions layouts/partials/toc.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ if not .Params.notoc }}
{{ with .TableOfContents }}
{{ if ge (len .) 200 }}
<div class="td-toc">{{ . }}</div>
{{ end }}
{{ end }}
{{ end }}
{{ if not .Params.notoc -}}
{{ with .TableOfContents -}}
{{ if ne . `<nav id="TableOfContents"></nav>` -}}
<div class="td-toc">
{{ . }}
</div>
{{ end -}}
{{ end -}}
{{ end -}}

0 comments on commit fb49386

Please sign in to comment.