mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	Allow disabling anchored headings
Usage =>
For site-wide:
    Params.disableAnchoredHeadings: true
For front-matter:
    disableAnchoredHeadings: true
			
			
This commit is contained in:
		| @@ -26,7 +26,9 @@ | |||||||
|   {{- partial "toc.html" . }} |   {{- partial "toc.html" . }} | ||||||
|   {{- end }} |   {{- end }} | ||||||
|   <div class="post-content"> |   <div class="post-content"> | ||||||
|  |     {{- if not (.Param "disableAnchoredHeadings") }} | ||||||
|     {{- partial "anchored_headings.html" .Content -}} |     {{- partial "anchored_headings.html" .Content -}} | ||||||
|  |     {{- else }}{{ .Content }}{{ end }} | ||||||
|   </div> |   </div> | ||||||
|   <footer class="post-footer"> |   <footer class="post-footer"> | ||||||
|     {{- if .Params.tags }} |     {{- if .Params.tags }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange