mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	toc: add option to open toc details by default
usage: in page params add (yml) TocOpen: true
This commit is contained in:
		| @@ -21,7 +21,7 @@ | |||||||
|   {{ end }} |   {{ end }} | ||||||
|   {{ if .Params.ShowToc }} |   {{ if .Params.ShowToc }} | ||||||
|   <div class="toc"> |   <div class="toc"> | ||||||
|     <details> |     <details {{if .Params.TocOpen }} open{{ end }}> | ||||||
|       <summary> |       <summary> | ||||||
|         <div class="details">Table of Contents</div> |         <div class="details">Table of Contents</div> | ||||||
|       </summary> |       </summary> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange