2022-05-07 01:56:43 +02:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
|
|
|
|
|
2020-02-22 07:54:43 +01:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
2020-06-09 15:44:20 +02:00
|
|
|
{{ if eq .Page.Params.direction "rtl" -}}
|
|
|
|
<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 }} crossorigin="anonymous">
|
|
|
|
{{- else -}}
|
2020-04-28 21:17:43 +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 }} crossorigin="anonymous">
|
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 -}}
|
|
|
|
|
2020-02-22 07:54:43 +01:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
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 }}
|
|
|
|
|
2020-10-22 08:38:15 +02:00
|
|
|
<link href="{{ $style.Permalink | relURL }}" rel="stylesheet">
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- end }}
|