File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- {{ if eq hugo.Environment "production" -}}
1
+ {{ if hugo.IsProduction -}}
2
2
< script src ="/dist/js/coreui.bundle.min.js " {{ printf "integrity=%q " .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }}> </ script >
3
3
{{ else -}}
4
4
< script src ="/dist/js/coreui.bundle.js "> </ script >
13
13
{{- $targetDocsJSPath := printf "/assets/js/docs.js" -}}
14
14
{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}}
15
15
16
- {{- if eq hugo.Environment "production" -}}
16
+ {{- if hugo.IsProduction -}}
17
17
{{- $docsJs = $docsJs | resources.Minify -}}
18
18
{{- end }}
19
19
Original file line number Diff line number Diff line change 2
2
< link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@docsearch/css@3 ">
3
3
{{- end }}
4
4
5
- {{ if eq hugo.Environment "production" -}}
5
+ {{ if hugo.IsProduction -}}
6
6
{{ if eq .Page.Params.direction "rtl" -}}
7
7
< link href ="/dist/css/coreui.rtl.min.css " rel ="stylesheet " {{ printf "integrity=%q " .Site.Params.cdn.css_rtl_hash | safeHTMLAttr }}>
8
8
{{- else -}}
18
18
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
19
19
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
20
20
21
- {{ if eq hugo.Environment "production" -}}
21
+ {{ if hugo.IsProduction -}}
22
22
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
23
23
{{- end -}}
24
24
You can’t perform that action at this time.
0 commit comments