hugo-theme-lowtech/layouts/partials/js.html

6 lines
170 B
HTML

{{ $main := resources.Get "js/main.js" }}
{{ with $main }}
{{ $js := . | resources.Minify }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{ end }}