wip(js): add head.html and assets/js

This commit is contained in:
geekifan
2025-04-21 17:35:52 +08:00
parent 33048ab200
commit f5b2c028da
29 changed files with 1243 additions and 0 deletions

View File

@ -8,6 +8,9 @@
{{ $sass := resources.Get "scss/main.bundle.scss" }}
{{ $style := $sass | toCSS $opts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ $jsFiles := resources.Match "js/**/*.js" }}
{{ $jsBundle := $jsFiles | resources.Concat "js/bundle.js" | minify | fingerprint }}
<script src="{{ $jsBundle.RelPermalink }}" integrity="{{ $jsBundle.Data.Integrity }}" type="module" defer></script>
</head>
<html>
<body>