1
0
Fork 0

fix code style

This commit is contained in:
nanxiaobei 2023-03-14 16:43:32 +08:00
parent 277dd13eb1
commit 589430e6e4

View file

@ -27,12 +27,11 @@
{{ end }} {{ end }}
<!-- Styles & Scripts --> <!-- Styles & Scripts -->
{{ $main_css := resources.Get "main.css" }} {{ $main := resources.Get "main.css" }}
<!----> <!---->
{{ $custom_css := resources.Get "custom.css" }} {{ $custom := resources.Get "custom.css" }}
<!----> <!---->
{{ $css := slice $main_css $custom_css | resources.Concat "main.css" | minify {{ $css := slice $main $custom | resources.Concat "main.css" | minify }}
}}
<link rel="preload stylesheet" as="style" href="{{ $css.Permalink }}" /> <link rel="preload stylesheet" as="style" href="{{ $css.Permalink }}" />
{{ if and .IsPage (not site.Params.disableHLJS) }} {{ if and .IsPage (not site.Params.disableHLJS) }}