diff --git a/i18n/en.yaml b/i18n/en.yaml index fe37067f13..32d25ee84f 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -17,6 +17,7 @@ important: Important note: Note tip: Tip warning: Warning +caution: Caution ## openapi strings: diff --git a/layouts/_default/_markup/render-blockquote.html b/layouts/_default/_markup/render-blockquote.html index dbc10f9996..e82786d5e5 100644 --- a/layouts/_default/_markup/render-blockquote.html +++ b/layouts/_default/_markup/render-blockquote.html @@ -28,7 +28,7 @@ {{ $i := index $icons .AlertType }} {{ partialCached "icon.html" $i $i }} - {{ or (i18n .AlertType) (title .AlertType) }} + {{ i18n .AlertType }}
{{ .Text | safeHTML }} diff --git a/layouts/shortcodes/experimental.html b/layouts/shortcodes/experimental.html index b1aa1f37bc..9e8ac45809 100644 --- a/layouts/shortcodes/experimental.html +++ b/layouts/shortcodes/experimental.html @@ -3,7 +3,7 @@ {{ partialCached "icon.html" "science" "science" }} - {{ .Get "title" | default "Experimental" }} + {{ .Get "title" | default (i18n "experimental") }} {{ .InnerDeindent | safe.HTML }} diff --git a/layouts/shortcodes/restricted.html b/layouts/shortcodes/restricted.html index 8256d2b9e1..befd5c4dbf 100644 --- a/layouts/shortcodes/restricted.html +++ b/layouts/shortcodes/restricted.html @@ -3,7 +3,7 @@ {{ partialCached "icon.html" "rocket_launch" "rocket_launch" }} - {{ .Get "title" | default "Restricted" }} + {{ .Get "title" | default (i18n "restricted") }} {{ .InnerDeindent | safe.HTML }}