Skip to content

Commit

Permalink
fix(alter-heading): add title named parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Mar 8, 2024
1 parent 2dcba71 commit c8739b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/partials/bootstrap/alert-heading.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{{- $title := "" }}
{{- if .IsNamedParams }}
{{- $title = .Get "title" }}
{{- else }}
{{- $title = .Get 0 }}
{{- end }}
<div class="alert-heading h5 d-flex">
{{- partial "bootstrap/alert-icon" (cond .Parent.IsNamedParams (.Parent.Get "style") (.Parent.Get 0)) -}}
{{- .Get 0 -}}
{{- $title -}}
</div>

0 comments on commit c8739b0

Please sign in to comment.