hugo: use i18n string for 'caution' alerts

While we don't currently use the caution alert anywhere yet, we should
still be consistent in using i18n strings for these (not `title
.AlertType`).

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2024-09-11 15:00:31 +02:00
parent b53f5cab39
commit 5e4fc68d6e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ important: Important
note: Note
tip: Tip
warning: Warning
caution: Caution
## openapi strings:
@@ -28,7 +28,7 @@
<span class="icon-svg pb-1">{{ $i := index $icons .AlertType }}
{{ partialCached "icon.html" $i $i }}
</span>
<strong>{{ or (i18n .AlertType) (title .AlertType) }}</strong>
<strong>{{ i18n .AlertType }}</strong>
</p>
{{ .Text | safeHTML }}
</blockquote>