2022-05-06 16:56:43 -07:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
|
|
|
|
|
2020-02-22 08:54:43 +02:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
2020-06-09 16:44:20 +03: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 22:17:43 +03: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 16:44:20 +03:00
|
|
|
{{- end -}}
|
2019-01-08 18:33:28 +02:00
|
|
|
{{- else -}}
|
2020-06-09 16:44:20 +03: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 18:33:28 +02:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if (ne .Page.Layout "examples") }}
|
2021-02-04 08:40:20 +02:00
|
|
|
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
|
2020-11-17 16:43:36 +02:00
|
|
|
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
|
2019-09-17 00:22:49 +03:00
|
|
|
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
|
|
|
|
2020-02-22 08:54:43 +02:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
2019-09-17 00:22:49 +03:00
|
|
|
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }}
|
|
|
|
|
2020-10-22 09:38:15 +03:00
|
|
|
<link href="{{ $style.Permalink | relURL }}" rel="stylesheet">
|
2019-01-08 18:33:28 +02:00
|
|
|
{{- end }}
|