Skip to content

Commit

Permalink
fix: remove duplicated class name (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Mar 7, 2024
1 parent af26784 commit 2d23160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/icons/functions/svg-attrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{/* Append the default class name. */}}
{{- $className := "hi-svg-inline" -}}
{{- with $attrs.Get "class" -}}
{{- $attrs.Add "class" (printf "%s %s" . $className) -}}
{{- $attrs.Set "class" (printf "%s %s" . $className) -}}
{{- else -}}
{{- $attrs.Set "class" $className -}}
{{- end -}}
Expand Down

0 comments on commit 2d23160

Please sign in to comment.