docs: use shortcode partials #277

This commit is contained in:
Sören Weber 2022-06-22 20:47:30 +02:00
parent 925fac5215
commit def91dddec
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -98,14 +98,12 @@
{{- $c = replaceRE "(src|href)=\"([^\"]*?)/pir/([^\"]*?.files/[^\"]*?\")" "${1}=\"${2}/${3}" $c }}
{{- end }}
{{- end }}
{{- $style := "warning" }}
{{- $title := "Arrr! Pirrrates" }}
{{- $icon := "skull-crossbones" }}
<div class="box notices cstyle {{ $style }}">
<div class="box-label"><i class="fa-fw fas fa-{{ $icon }}"></i> {{ $title }}</div>
<div class="box-content">
<p>Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.</p>
</div>
</div>
{{- partial "shortcodes/notice.html" (dict
"context" .
"content" "<p>Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.</p>"
"icon" "skull-crossbones"
"style" "warning"
"title" "Arrr! Pirrrates"
) }}
{{ $c | safeHTML }}