diff --git a/layouts/partials/bootstrap/container.html b/layouts/partials/bootstrap/container.html index 546d523..5245f56 100644 --- a/layouts/partials/bootstrap/container.html +++ b/layouts/partials/bootstrap/container.html @@ -1,10 +1,12 @@ {{- $breakpoint := "" }} {{- $class := "" }} {{- $bg := "" }} +{{- $bgColor := "" }} {{- if .IsNamedParams }} {{- $breakpoint = .Get "breakpoint" }} {{- $class = .Get "class" }} {{- $bg = .Get "bg" }} + {{- $bgColor = .Get "bgColor" }} {{- else }} {{- $breakpoint = .Get 0 }} {{- $class = .Get 1 }} @@ -31,6 +33,9 @@ "background-size: cover" }} {{- end }} +{{- with $bgColor }} + {{- $style = $style | append (printf "background-color: %s" .) }} +{{- end }}