mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	highlightjs : include only on pages with mainSections
* this makes hljs not load on index, taxonomies, archive pages where code highlighting isn't used * improving page site load time
This commit is contained in:
		| @@ -12,9 +12,10 @@ | ||||
|             <path d="M12 6H0l6-6z" /></svg> | ||||
|     </button> | ||||
| </a> | ||||
|  | ||||
| {{if in site.Params.mainSections .Type }} | ||||
| {{ $highlight := resources.Get "js/highlight.min.js" | minify | fingerprint}} | ||||
| <script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script> | ||||
| {{end }} | ||||
| <script> | ||||
|     window.onload = function () { | ||||
|         if (localStorage.getItem("menu-scroll-position")) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange