hugo-bearblog : only get required stylesheet

This commit is contained in:
minoplhy 2024-03-14 02:46:45 +07:00
parent 63e45137af
commit 21292ae509
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -17,7 +17,7 @@
<!-- External Script, Stylesheet linking -->
{{- /* CSS stylesheet */}}
{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "css/style.css" | resources.Minify }}
{{- $stylesheet := (resources.Get "css/style.css") | resources.Minify }}
{{- if not site.Params.assets.disableFingerprinting }}
{{- $stylesheet := $stylesheet | fingerprint }}
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style">
@ -41,6 +41,7 @@
</head>
<body>
<header>
{{- partial "header.html" . -}}
</header>