diff --git a/layouts/_default/_markup/render-blockquote.html b/layouts/_default/_markup/render-blockquote.html index 18df6cb9..e68534dc 100644 --- a/layouts/_default/_markup/render-blockquote.html +++ b/layouts/_default/_markup/render-blockquote.html @@ -33,19 +33,11 @@ {{- $normalizedType := index $typeMap $rawType | default $rawType -}} {{- $iconName := .Attributes.icon | default (index $iconMap $normalizedType) | default "circle-info" -}} - {{- $rawCustomTitle := .AlertTitle | default "" -}} - {{- $trimmedCustomTitle := strings.TrimSpace $rawCustomTitle -}} - {{- $hasCustomTitle := ne $trimmedCustomTitle "" -}} - {{- $defaultTitle := i18n (printf "admonition.%s" $normalizedType) | default $normalizedType -}} - {{- $admonitionTitle := cond $hasCustomTitle $rawCustomTitle $defaultTitle -}} + {{- $admonitionTitle := .AlertTitle | default ((i18n (printf "admonition.%s" $normalizedType) | default $normalizedType) | title) -}} {{- $containerClass := "admonition relative overflow-hidden rounded-lg border-l-4 my-3 px-4 py-3 shadow-sm" -}} {{- $headerClass := "flex items-center gap-2 font-semibold text-inherit" -}} {{- $contentClass := "admonition-content mt-3 text-base leading-relaxed text-inherit" -}} - {{- $titleClass := "grow" -}} - {{- if not $hasCustomTitle -}} - {{- $titleClass = printf "%s %s" $titleClass "capitalize" -}} - {{- end -}} {{- $isCollapsible := in (slice "+" "-") .AlertSign -}} {{- if $isCollapsible -}} @@ -57,7 +49,7 @@
{{- partial "icon.html" $iconName -}}
-
+
{{ $admonitionTitle }}
{{- partial "icon.html" $iconName -}}
-
+
{{ $admonitionTitle }}