Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/layouts/partials/stylesheet.html')
-rw-r--r--docs/layouts/partials/stylesheet.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/layouts/partials/stylesheet.html b/docs/layouts/partials/stylesheet.html
new file mode 100644
index 000000000..fe36c6d3d
--- /dev/null
+++ b/docs/layouts/partials/stylesheet.html
@@ -0,0 +1,17 @@
+<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> -->
+<link rel="stylesheet" href="https://twbs-bootstrap.netlify.com/docs/4.3/dist/css/bootstrap.min.css">
+
+{{- $sassOptions := dict "targetPath" "assets/css/docs.css" -}}
+
+{{- if (eq (getenv "HUGO_ENV") "production") -}}
+ {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
+{{- else -}}
+ {{- $sassOptions = merge $sassOptions (dict "enableSourceMap" true) -}}
+{{- end -}}
+
+{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions -}}
+
+{{- if (eq (getenv "HUGO_ENV") "production") -}}
+ {{- $style = $style | postCSS | fingerprint -}}
+{{- end }}
+<link rel="stylesheet" href="{{ $style.Permalink | relURL }}">