mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Don't enable CodeCopyButtons by default
Change in var name disableCodeCopy -> ShowCodeCopyButtons
This commit is contained in:
		| @@ -85,7 +85,7 @@ | ||||
| </script> | ||||
| {{- end }} | ||||
|  | ||||
| {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not .Site.Params.disableCodeCopy)) }} | ||||
| {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Site.Params.ShowCodeCopyButtons)) }} | ||||
| <script> | ||||
|     document.querySelectorAll('pre > code').forEach((codeblock) => { | ||||
|         const container = codeblock.parentNode.parentNode; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange