2019-01-08 17:33:28 +01:00
|
|
|
{{- "<!-- Bootstrap core CSS -->" | safeHTML }}
|
2020-02-22 07:54:43 +01:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
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">
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- else -}}
|
|
|
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.css" rel="stylesheet">
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if (ne .Page.Layout "examples") }}
|
2019-09-16 23:22:49 +02:00
|
|
|
{{- $targetDocsCssPath := printf "/docs/%s/assets/css/docs.css" .Site.Params.docs_version -}}
|
|
|
|
{{- $sassOptions := dict "targetPath" $targetDocsCssPath "precision" 6 -}}
|
|
|
|
{{- $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 }}
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{ $style.Permalink | relURL }}">
|
2019-01-08 17:33:28 +01:00
|
|
|
{{- end }}
|