mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-17 08:34:25 -04:00
Merge a0b3bb4617
into 7cf752f864
This commit is contained in:
commit
aaf09bfc4a
1 changed files with 6 additions and 2 deletions
|
@ -61,11 +61,15 @@
|
|||
|
||||
{{- /* order is important */}}
|
||||
{{- $core := (slice $theme_vars $reset $common $chroma_styles $chroma_mod $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }}
|
||||
{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }}
|
||||
{{- if .Site.Params.UseScss }}
|
||||
{{- .Store.Set "extended" (resources.Get "scss/extended/main.scss" | toCSS | minify) }}
|
||||
{{- else }}
|
||||
{{- .Store.Set "extended" (resources.Match "css/extended/*.css" | resources.Concat "assets/css/extended.css" | resources.Minify) }}
|
||||
{{- end }}
|
||||
|
||||
{{- /* bundle all required css */}}
|
||||
{{- /* Add extended css after theme style */ -}}
|
||||
{{- $stylesheet := (slice $license_css $core $extended) | resources.Concat "assets/css/stylesheet.css" }}
|
||||
{{- $stylesheet := ((slice $license_css $core (.Store.Get "extended")) | resources.Concat "assets/css/stylesheet.css") }}
|
||||
|
||||
{{- if not site.Params.assets.disableFingerprinting }}
|
||||
{{- $stylesheet := $stylesheet | fingerprint }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue