{{/* styles */}} {{/* Load Bootstrap SCSS. */}} {{ $options := dict "enableSourceMap" true }} {{ if hugo.IsProduction }} {{ $options := dict "enableSourceMap" false "outputStyle" "compressed" }} {{ end }} {{ $styles := resources.Get "scss/styles.scss" }} {{ $styles = $styles | css.Sass $options }} {{ if hugo.IsProduction }} {{ $styles = $styles | fingerprint }} {{ end }} {{/* Load Bootstrap JS. */}} {{ $js := resources.Get "js/index.js" }} {{ $params := dict }} {{ $sourceMap := cond hugo.IsProduction "" "inline" }} {{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2018" "params" $params }} {{ $js = $js | js.Build $opts }} {{ if hugo.IsProduction }} {{ $js = $js | fingerprint }} {{ end }}
Note: We have a replacement of
github.com/gohugoio/hugo-mod-bootstrap-scss/v4 to point to the directory
one level up (we do this to get correct PR previews when we update
Bootstrap). The version number reflects the version in
go.mod.
| # | Owner | Path | Version | Time | Vendor |
|---|---|---|---|---|---|
| {{ add $index 1 }} | {{ with $element.Owner }}{{ .Path }}{{ end }} | {{ $element.Path }} {{ with $element.Replace }} => {{ .Path }} {{ end }} | {{ $element.Version }} | {{ with $element.Time }}{{ . }}{{ end }} | {{ $element.Vendor }} |