Make css and js resources minify

This commit is contained in:
2021-08-26 10:56:49 +08:00
parent f1e4ec6217
commit 45fc1a2d56
2 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,8 @@
{{ partial "meta-tags.html" . }}
{{ end -}}
{{ with resources.Get "css/katex.css" -}}
<link href="{{ .Permalink }}" rel="stylesheet">
{{ $katexcss := resources.Get "css/katex.css" | minify }}
<link href="{{ $katexcss.Permalink }}" rel="stylesheet">
{{ end -}}
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
{{ $mainStyle := resources.Get "css/style.css" }}