From 30b9669ea95e6b3b4f48a25c8045c2b4f551dacd Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 19 Jun 2022 21:48:10 +0200 Subject: convert img and template directives to shortcodes command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's/\[\[!img\s+([^\s\]"]+)(\s(?:[^\]]|"[^"]*")+?)?\s*\]\]/{{ img(path="$1"$2) }}/g; s/\[\[!template\s+id="?(columns|note|video)"?\s+([^\]]+?)\s*\]\]/{{ $1($2) }}/g;' '{}' + ``` --- udflugtkbh/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'udflugtkbh') diff --git a/udflugtkbh/index.md b/udflugtkbh/index.md index 2fbdebc2..d8a5894f 100644 --- a/udflugtkbh/index.md +++ b/udflugtkbh/index.md @@ -1,7 +1,7 @@ [[!meta title="Udflugter med opgaver"]] [[!if test="included() and !(destpage(index) or destpage(test))" then=""" -[[!img islanddynamics_apple.jpg class="solo" link="/udflugtkbh" ]] +{{ img(path="islanddynamics_apple.jpg" class="solo" link="/udflugtkbh") }} # Ture med udfordringer Arrangementer med quiz, opgaver, leg og inspiration. @@ -13,19 +13,19 @@ til gruppen og stemningen. """]] [[!if test="included()" then=""" -[[!img islanddynamics_apple_front.jpg link="/udflugtkbh"]] +{{ img(path="islanddynamics_apple_front.jpg" link="/udflugtkbh") }} """]] [[!if test="!included()" then=""" [[!template id="deco" text=" -[[!img dyst1_nytorv.jpg class="deco"]] -[[!img croquet.jpg class="deco"]] -[[!img froerundetaarn.jpg class="deco"]] -[[!img sunsetdrinks.jpg class="deco"]] -[[!img skovtur.jpg class="deco"]] -[[!img islanddynamics_apple.jpg class="deco"]] +{{ img(path="dyst1_nytorv.jpg" class="deco") }} +{{ img(path="croquet.jpg" class="deco") }} +{{ img(path="froerundetaarn.jpg" class="deco") }} +{{ img(path="sunsetdrinks.jpg" class="deco") }} +{{ img(path="skovtur.jpg" class="deco") }} +{{ img(path="islanddynamics_apple.jpg" class="deco") }} "]] # Ture med udfordringer **Arrangementer med quiz, opgaver, leg og inspiration.** -- cgit v1.2.3