mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	toc: look cool
- improve toc styling
    - make collapsable
			
			
This commit is contained in:
		| @@ -47,7 +47,13 @@ | |||||||
| } | } | ||||||
|  |  | ||||||
| .toc { | .toc { | ||||||
|     border-bottom: 1px solid var(--border); |     margin-bottom: 40px; | ||||||
|     font-size: 20px; |     border: 1px solid var(--border); | ||||||
|  |     border-radius: 4px; | ||||||
|  |     padding: .5em; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .toc .details { | ||||||
|  |     display: inline; | ||||||
|     font-weight: 500; |     font-weight: 500; | ||||||
| } | } | ||||||
| @@ -13,10 +13,16 @@ | |||||||
|     </div> |     </div> | ||||||
|   </header> |   </header> | ||||||
|   {{ if .Params.ShowToc }} |   {{ if .Params.ShowToc }} | ||||||
|  |   <div class="toc"> | ||||||
|  |     <details> | ||||||
|  |       <summary> | ||||||
|  |         <div class="details">Table of Contents</div> | ||||||
|  |       </summary> | ||||||
|       <blockquote> |       <blockquote> | ||||||
|     <div class="toc">Table of Contents</div> |  | ||||||
|         {{ .TableOfContents }} |         {{ .TableOfContents }} | ||||||
|       </blockquote> |       </blockquote> | ||||||
|  |     </details> | ||||||
|  |   </div> | ||||||
|   {{ end }} |   {{ end }} | ||||||
|   <div class="post-content">{{ .Content }}</div> |   <div class="post-content">{{ .Content }}</div> | ||||||
|   {{- if .Params.tags }} |   {{- if .Params.tags }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange