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;' '{}' + ``` --- juleevent/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juleevent') diff --git a/juleevent/index.md b/juleevent/index.md index 7d72e801..ac670366 100644 --- a/juleevent/index.md +++ b/juleevent/index.md @@ -1,7 +1,7 @@ [[!meta title="Julearrangementer"]] [[!if test="included() and !destpage(index)" then=""" -[[!img nilenjul.jpg class="solo" link="/juleevent"]] +{{ img(path="nilenjul.jpg" class="solo" link="/juleevent") }} Byvandring.nu byder på hjemmelavede julearrangementer. Vi krydrer turen, så den passer til jer. @@ -12,7 +12,7 @@ eller optakt til julefrokosten. """]] [[!if test="included()" then=""" -[[!img nilenjul.jpg link="juleevent" class="solo" size="480x" ]] +{{ img(path="nilenjul.jpg" link="juleevent" class="solo" size="480x") }} """]] [[!if test="!included()" then=""" -- cgit v1.2.3