Improve consistency of handling shrotcode attributes
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
{{- /* remove whitespaces */ -}}
|
||||
<div class="book-steps {{ with .Get "class" }}{{ . }}{{ end }}">
|
||||
{{- $attributes := partial "docs/text/mapper" (dict
|
||||
"attributes" (cond .IsNamedParams .Params dict)
|
||||
"merge" (dict
|
||||
"class" "book-steps"
|
||||
)
|
||||
) -}}
|
||||
<div {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
|
||||
{{ .Inner -}}
|
||||
</div>
|
||||
{{- /* remove whitespaces */ -}}
|
||||
|
||||
Reference in New Issue
Block a user