hugo-theme-relearn/layouts/_default/_markup/render-blockquote.html

21 lines
564 B
HTML
Raw Normal View History

{{- $alerttype := .AlertType }}
{{- $alerttitle := "" }}
{{- $alertsign := "" }}
{{- $hugoVersion := "0.134.0" }}
{{- if ge hugo.Version $hugoVersion }}
{{- $alerttitle = .AlertTitle }}
{{- $alertsign = .AlertSign }}
{{- end }}
{{- $text := .Text }}
{{- if $alerttype }}
{{- partial "shortcodes/notice.html" (dict
"page" .Page
"content" $text
"style" $alerttype
"title" $alerttitle
"expanded" (cond (eq $alertsign "+") true (cond (eq $alertsign "-") false ""))
) }}
2024-09-05 18:02:38 +00:00
{{ else -}}
<blockquote>
2024-09-05 18:02:38 +00:00
{{ $text | safeHTML }}</blockquote>
{{ end }}