mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	add toc side support
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| {{- $headers := findRE "<h[1-6].*?>(.|\n])+?</h[1-6]>" .Content -}} | ||||
| {{- $has_headers := ge (len $headers) 1 -}} | ||||
| {{- if $has_headers -}} | ||||
| <div class="toc"> | ||||
| <div class="toc side"> | ||||
|     <details {{if (.Param "TocOpen") }} open{{ end }}> | ||||
|         <summary accesskey="c" title="(Alt + C)"> | ||||
|             <span class="details">{{- i18n "toc" | default "Table of Contents" }}</span> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Wonderfall
					Wonderfall