From c8739b0696b2acf68c43e788da69cda29be71196 Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 8 Mar 2024 21:43:11 +0800 Subject: [PATCH] fix(alter-heading): add title named parameter --- layouts/partials/bootstrap/alert-heading.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -}}