Execute darkmode script before first render
This commit is contained in:
		
							parent
							
								
									8850976d8d
								
							
						
					
					
						commit
						f9920f6d73
					
				
					 5 changed files with 21 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -17,5 +17,11 @@
 | 
			
		|||
    </style>
 | 
			
		||||
    {{end}}
 | 
			
		||||
    {{end}}
 | 
			
		||||
 | 
			
		||||
    {{- with resources.Get "darkmode.js" | minify -}}
 | 
			
		||||
    <script>
 | 
			
		||||
      {{.Content | safeJS }}
 | 
			
		||||
    </script>
 | 
			
		||||
    {{- end -}}
 | 
			
		||||
</head>
 | 
			
		||||
{{ template "_internal/google_analytics.html" . }}
 | 
			
		||||
{{ template "_internal/google_analytics.html" . }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue