Execute darkmode script before first render
This commit is contained in:
		@@ -11,12 +11,6 @@
 | 
			
		||||
        <a href="/">↳ Let's get you home.</a>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{{- with resources.Get "darkmode.js" | minify -}}
 | 
			
		||||
<script>
 | 
			
		||||
  {{.Content | safeJS }}
 | 
			
		||||
</script>
 | 
			
		||||
{{- end -}}
 | 
			
		||||
</body>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -18,13 +18,6 @@
 | 
			
		||||
    </article>
 | 
			
		||||
    {{partial "footer.html" .}}
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{{- with resources.Get "darkmode.js" | minify -}}
 | 
			
		||||
<script>
 | 
			
		||||
  {{.Content | safeJS }}
 | 
			
		||||
</script>
 | 
			
		||||
{{- end -}}
 | 
			
		||||
 | 
			
		||||
</body>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
@@ -13,10 +13,4 @@
 | 
			
		||||
        {{partial "footer.html" .}}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{{- with resources.Get "darkmode.js" | minify -}}
 | 
			
		||||
<script>
 | 
			
		||||
  {{.Content | safeJS }}
 | 
			
		||||
</script>
 | 
			
		||||
{{- end -}}
 | 
			
		||||
{{end}}
 | 
			
		||||
{{end}}
 | 
			
		||||
 
 | 
			
		||||
@@ -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" . }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user