2024-03-08 11:41:17 +01:00
|
|
|
{{ if hugo.IsProduction -}}
|
2020-06-09 15:44:20 +02:00
|
|
|
{{ if eq .Page.Params.direction "rtl" -}}
|
2023-08-22 14:19:51 +02:00
|
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.rtl.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_rtl_hash | safeHTMLAttr }}>
|
2020-06-09 15:44:20 +02:00
|
|
|
{{- else -}}
|
2023-08-22 14:19:51 +02:00
|
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_hash | safeHTMLAttr }}>
|
2020-06-09 15:44:20 +02:00
|
|
|
{{- end -}}
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- else -}}
|
2020-06-09 15:44:20 +02:00
|
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap{{ if eq .Page.Params.direction "rtl" }}.rtl{{ end }}.css" rel="stylesheet">
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if (ne .Page.Layout "examples") }}
|
2021-02-04 07:40:20 +01:00
|
|
|
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
|
2020-11-17 15:43:36 +01:00
|
|
|
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
|
2019-09-16 23:22:49 +02:00
|
|
|
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
|
|
|
|
2024-03-08 11:41:17 +01:00
|
|
|
{{ if hugo.IsProduction -}}
|
2019-09-16 23:22:49 +02:00
|
|
|
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }}
|
|
|
|
|
2024-03-08 11:43:44 +01:00
|
|
|
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- end }}
|