feat: hide toc for short notes
This commit is contained in:
		
							parent
							
								
									fc4b9ded76
								
							
						
					
					
						commit
						e245505082
					
				
					 3 changed files with 10 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -22,14 +22,7 @@
 | 
			
		|||
          <li><a href="{{ .Permalink }}">{{ .LinkTitle | humanize }}</a></li>
 | 
			
		||||
          {{ end }}
 | 
			
		||||
      </ul>
 | 
			
		||||
      {{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
 | 
			
		||||
      <aside class="mainTOC">
 | 
			
		||||
          <details {{ if $.Site.Data.config.openToc }}open {{ end }}>
 | 
			
		||||
            <summary>Table of Contents</summary>
 | 
			
		||||
            {{ .TableOfContents }}
 | 
			
		||||
          </details>
 | 
			
		||||
      </aside>
 | 
			
		||||
      {{end}}
 | 
			
		||||
      {{partial "toc.html" .}} 
 | 
			
		||||
      {{partial "textprocessing.html" . }}
 | 
			
		||||
    </article>
 | 
			
		||||
    {{partial "footer.html" .}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue