add a collapsible ToC
This commit is contained in:
		@@ -15,8 +15,10 @@
 | 
			
		||||
    <article>
 | 
			
		||||
        {{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
 | 
			
		||||
        <aside class="mainTOC">
 | 
			
		||||
            <h3>Table of Contents</h3>
 | 
			
		||||
            {{ .TableOfContents }}
 | 
			
		||||
            <details {{ if $.Site.Data.config.openToc }}open {{ end }}>
 | 
			
		||||
                <summary>Table of Contents</summary>
 | 
			
		||||
                {{ .TableOfContents }}
 | 
			
		||||
            </details>
 | 
			
		||||
        </aside>
 | 
			
		||||
        {{end}}
 | 
			
		||||
        {{partial "textprocessing.html" . }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user