mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-01 02:23:29 -05:00 
			
		
		
		
	Table of contents defaults to false
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| +++ | ||||
| title = "{{ replace .Name "-" " " | title }}" | ||||
| date = "{{ .Date }}" | ||||
| toc = true | ||||
| draft = true | ||||
|  | ||||
| description = """ | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| +++ | ||||
| title = "{{ replace .Name "-" " " | title }}" | ||||
| menu = "main" | ||||
| toc = true | ||||
|  | ||||
| description = """ | ||||
| Lorem ipsum | ||||
|   | ||||
| @@ -8,7 +8,7 @@ | ||||
|         {{ partial "navbar.html" . }} | ||||
|  | ||||
|         <div class="page"> | ||||
|             {{ if and (ne .Params.Toc false) .IsPage }} | ||||
|             {{ if and .Params.Toc .IsPage }} | ||||
|             <div class="side"> | ||||
|                 <h3>Table of Contents</h3> | ||||
|                 {{ .TableOfContents }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user