mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
12 lines
415 B
HTML
12 lines
415 B
HTML
{{- $attrs := "" }}
|
|
{{- range $key, $value := .Attributes }}
|
|
{{- $attrs = printf "%s %s=%q" $attrs $key $value }}
|
|
{{- end }}
|
|
{{- $attrs = trim $attrs " " }}
|
|
|
|
{{- if eq .Type "alert" -}}
|
|
{{- dict "Text" .Text "Type" .AlertType "Attributes" .Attributes | partial "plugin/alert.html" -}}
|
|
{{- else -}}
|
|
<blockquote {{- with $attrs }} {{ . | safeHTMLAttr }}{{ end }}>{{ .Text | safeHTML }}</blockquote>
|
|
{{- end -}}
|