From def91dddec43a829122d5884fa8085295a7a1649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 22 Jun 2022 20:47:30 +0200 Subject: [PATCH] docs: use shortcode partials #277 --- exampleSite/layouts/shortcodes/piratify.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/exampleSite/layouts/shortcodes/piratify.html b/exampleSite/layouts/shortcodes/piratify.html index 642298b369..802eeb1c3e 100644 --- a/exampleSite/layouts/shortcodes/piratify.html +++ b/exampleSite/layouts/shortcodes/piratify.html @@ -98,14 +98,12 @@ {{- $c = replaceRE "(src|href)=\"([^\"]*?)/pir/([^\"]*?.files/[^\"]*?\")" "${1}=\"${2}/${3}" $c }} {{- end }} {{- end }} -{{- $style := "warning" }} -{{- $title := "Arrr! Pirrrates" }} -{{- $icon := "skull-crossbones" }} -
-
{{ $title }}
-
-

Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.

-
-
+{{- partial "shortcodes/notice.html" (dict + "context" . + "content" "

Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.

" + "icon" "skull-crossbones" + "style" "warning" + "title" "Arrr! Pirrrates" +) }} {{ $c | safeHTML }} \ No newline at end of file