diff --git a/layouts/partials/bootstrap/icon-grid.html b/layouts/partials/bootstrap/icon-grid.html index 5922c9a..12c03cf 100644 --- a/layouts/partials/bootstrap/icon-grid.html +++ b/layouts/partials/bootstrap/icon-grid.html @@ -6,10 +6,12 @@ "className" "ms-1") }} {{- $border := true }} +{{- $alignment := "start" }} {{- if .IsNamedParams }} {{- $key = .Get "data" }} {{- if isset .Params "linkText" }}{{ $linkText = .Get "linkText" }}{{ end }} {{- if isset .Params "border" }}{{ $border = .Get "border" }}{{ end }} + {{- with .Get "alignment" }}{{ $alignment = . }}{{ end }} {{- else }} {{- $key = .Get 0 }} {{- end }} @@ -46,10 +48,10 @@ {{- end }} {{- if and $link (eq $linkText "") }} -
+
{{- $icon -}}{{- .title -}}

@@ -57,8 +59,8 @@

{{ else }} -
-
+
+
{{- $icon -}}{{- .title -}}