diff --git a/layouts/partials/bootstrap/alert-heading.html b/layouts/partials/bootstrap/alert-heading.html index b230d8b..6307def 100644 --- a/layouts/partials/bootstrap/alert-heading.html +++ b/layouts/partials/bootstrap/alert-heading.html @@ -1,4 +1,10 @@ +{{- $title := "" }} +{{- if .IsNamedParams }} + {{- $title = .Get "title" }} +{{- else }} + {{- $title = .Get 0 }} +{{- end }}
{{- partial "bootstrap/alert-icon" (cond .Parent.IsNamedParams (.Parent.Get "style") (.Parent.Get 0)) -}} - {{- .Get 0 -}} + {{- $title -}}