mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-14 02:24:00 +01:00
930740afbc
Some checks failed
BrowserStack / browserstack (push) Has been cancelled
Bundlewatch / bundlewatch (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
cspell / cspell (push) Has been cancelled
CSS / css (push) Has been cancelled
Docs / docs (push) Has been cancelled
JS Tests / JS Tests (push) Has been cancelled
Lint / lint (push) Has been cancelled
CSS (node-sass) / css (push) Has been cancelled
Release notes / update_release_draft (push) Has been cancelled
26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
|
|
|
|
{{ if hugo.IsProduction -}}
|
|
{{ 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 }}>
|
|
{{- else -}}
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_hash | safeHTMLAttr }}>
|
|
{{- end -}}
|
|
{{- else -}}
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap{{ if eq .Page.Params.direction "rtl" }}.rtl{{ end }}.css" rel="stylesheet">
|
|
{{- end }}
|
|
|
|
{{- if (ne .Page.Layout "examples") }}
|
|
{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}}
|
|
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}}
|
|
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
|
|
|
{{ if hugo.IsProduction -}}
|
|
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
|
|
{{- end -}}
|
|
|
|
{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }}
|
|
|
|
<link href="{{ $style.Permalink | relURL }}" rel="stylesheet">
|
|
{{- end }}
|