diff --git a/README.md b/README.md index bbcf216cca..a270067ac9 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Within the download you'll find the following directories and files, logically g ``` -We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://developer.chrome.com/docs/devtools/) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/docs/v2/). +We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://web.dev/articles/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/docs/v2/). ## Bugs and feature requests diff --git a/site/assets/scss/_search.scss b/site/assets/scss/_search.scss index ca1e5b060c..592d65f98f 100644 --- a/site/assets/scss/_search.scss +++ b/site/assets/scss/_search.scss @@ -47,6 +47,7 @@ --docsearch-muted-color: var(--bs-secondary-color); --docsearch-hit-shadow: none; + position: fixed; z-index: 2000; // Make sure to be over all components showcased in the documentation cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://github.com/algolia/docsearch/issues/1370 is tackled. diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 19aad368d6..3b048a9d44 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -158,7 +158,7 @@ {{ .Content }} - {{- if eq hugo.Environment "production" -}} + {{- if hugo.IsProduction -}} {{- else -}} diff --git a/site/layouts/partials/footer.html b/site/layouts/partials/footer.html index 421b70ec8d..562489e50c 100644 --- a/site/layouts/partials/footer.html +++ b/site/layouts/partials/footer.html @@ -41,7 +41,7 @@
  • Bootstrap 4
  • Icons
  • RFS
  • -
  • Examples repo
  • +
  • Examples repo
  • diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html index facb7d384a..046f659a94 100644 --- a/site/layouts/partials/scripts.html +++ b/site/layouts/partials/scripts.html @@ -1,4 +1,4 @@ -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{ else -}} @@ -15,7 +15,7 @@ {{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}} {{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} -{{- if eq hugo.Environment "production" -}} +{{- if hugo.IsProduction -}} {{- $docsJs = $docsJs | resources.Minify -}} {{- end }} diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html index 5a3609529b..47e25e0c54 100644 --- a/site/layouts/partials/stylesheet.html +++ b/site/layouts/partials/stylesheet.html @@ -1,6 +1,6 @@ -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{ if eq .Page.Params.direction "rtl" -}} {{- else -}} @@ -15,7 +15,7 @@ {{- $sassOptions := dict "transpiler" "dartsass" "targetPath" $targetDocsCssPath "outputStyle" "expanded" -}} {{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}} -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}} {{- end -}} diff --git a/site/layouts/robots.txt b/site/layouts/robots.txt index 271b4f1b7b..bafd23893d 100644 --- a/site/layouts/robots.txt +++ b/site/layouts/robots.txt @@ -1,8 +1,7 @@ # www.robotstxt.org -{{- $isProduction := eq hugo.Environment "production" -}} {{- $isNetlify := eq (getenv "NETLIFY") "true" -}} -{{- $allowCrawling := and (not $isNetlify) $isProduction -}} +{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}} {{ if $allowCrawling }} # Allow crawling of all content