mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
head: add *.css under assets/css/extended/
to bundle it with stylesheet.css as single resource minified - added to the end so that default vars are overriden properly
This commit is contained in:
parent
5e40132673
commit
d74ad93c18
0
assets/css/extended/blank.css
Normal file
0
assets/css/extended/blank.css
Normal file
@ -21,7 +21,12 @@
|
|||||||
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
|
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
|
||||||
{{- end}}
|
{{- end}}
|
||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
{{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "assets/css/stylesheet.css" | minify -}}
|
{{- $common := (resources.Match "css/*.css") | resources.Concat "assets/css/common.css" }}
|
||||||
|
{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }}
|
||||||
|
{{- /* bundle all required css */}}
|
||||||
|
{{- /* Add extended css after theme style */ -}}
|
||||||
|
{{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }}
|
||||||
|
|
||||||
{{- if not .Site.Params.assets.disableFingerprinting }}
|
{{- if not .Site.Params.assets.disableFingerprinting }}
|
||||||
{{- $stylesheet := $stylesheet | fingerprint -}}
|
{{- $stylesheet := $stylesheet | fingerprint -}}
|
||||||
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
|
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
|
||||||
|
Loading…
Reference in New Issue
Block a user