hugo: use i18n strings in 'experimental' and 'restricted' shortcodes

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-09-11 15:07:52 +02:00
parent 5e4fc68d6e
commit 3249110cdf
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<span class="icon-svg pb-1">
{{ partialCached "icon.html" "science" "science" }}
</span>
<strong>{{ .Get "title" | default "Experimental" }}</strong>
<strong>{{ .Get "title" | default (i18n "experimental") }}</strong>
</p>
{{ .InnerDeindent | safe.HTML }}
</div>

View File

@ -3,7 +3,7 @@
<span class="icon-svg pb-1">
{{ partialCached "icon.html" "rocket_launch" "rocket_launch" }}
</span>
<strong>{{ .Get "title" | default "Restricted" }}</strong>
<strong>{{ .Get "title" | default (i18n "restricted") }}</strong>
</p>
{{ .InnerDeindent | safe.HTML }}
</div>