hugo-bearblog : only get required stylesheet
This commit is contained in:
parent
63e45137af
commit
21292ae509
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<!-- External Script, Stylesheet linking -->
|
<!-- External Script, Stylesheet linking -->
|
||||||
{{- /* CSS stylesheet */}}
|
{{- /* 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 }}
|
{{- if not site.Params.assets.disableFingerprinting }}
|
||||||
{{- $stylesheet := $stylesheet | fingerprint }}
|
{{- $stylesheet := $stylesheet | fingerprint }}
|
||||||
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style">
|
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style">
|
||||||
@ -41,6 +41,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user