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 }} {{- $c = replaceRE "(src|href)=\"([^\"]*?)/pir/([^\"]*?.files/[^\"]*?\")" "${1}=\"${2}/${3}" $c }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- $style := "warning" }} {{- partial "shortcodes/notice.html" (dict
{{- $title := "Arrr! Pirrrates" }} "context" .
{{- $icon := "skull-crossbones" }} "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 class="box notices cstyle {{ $style }}"> "icon" "skull-crossbones"
<div class="box-label"><i class="fa-fw fas fa-{{ $icon }}"></i> {{ $title }}</div> "style" "warning"
<div class="box-content"> "title" "Arrr! Pirrrates"
<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>
{{ $c | safeHTML }} {{ $c | safeHTML }}