13 lines
		
	
	
		
			441 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			441 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{- with resources.Get "js/main.js" }}
 | |
|   {{- if eq hugo.Environment "development" }}
 | |
|     {{- with . | js.Build }}
 | |
|       <script src="{{ .RelPermalink }}" defer></script>
 | |
|     {{- end }}
 | |
|   {{- else }}
 | |
|     {{- $opts := dict "minify" true }}
 | |
|     {{- with . | js.Build $opts | fingerprint }}
 | |
|       <script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" defer></script>
 | |
|     {{- end }}
 | |
|   {{- end }}
 | |
| {{- end }}
 |