moves js into the asset pipeline

This commit is contained in:
Drew
2025-04-25 20:05:33 -06:00
parent 5290772bce
commit b6f74485a4
4 changed files with 8 additions and 3 deletions

View File

@ -90,8 +90,13 @@
{{ block "main" . }}{{ end }} {{ block "main" . }}{{ end }}
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
<script src="/js/sigil.js"></script>
<script src="/js/colorCalculator.js"></script> {{ $js := resources.Match "js/*.js" | resources.Concat "js/bundle.js" }}
<script src="/js/wompum.js"></script> {{ if hugo.IsProduction }}
{{ $js = $js | minify | fingerprint }}
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous"></script>
{{ else }}
<script src="{{ $js.RelPermalink }}"></script>
{{ end }}
</body> </body>
</html> </html>