feat: display toc only when headings + toc=true
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
{{ if ne .Params.toc false -}}
 | 
			
		||||
{{ if and (ne .Params.toc false) (ne .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
 | 
			
		||||
  <div class="page-links">
 | 
			
		||||
    <h3>On this page</h3>
 | 
			
		||||
    {{ .TableOfContents }}
 | 
			
		||||
  </div>
 | 
			
		||||
{{ end -}}
 | 
			
		||||
{{ end -}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user