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;' '{}' + ``` --- operahavn/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'operahavn/index.md') diff --git a/operahavn/index.md b/operahavn/index.md index 63d6dc37..f031ff0a 100644 --- a/operahavn/index.md +++ b/operahavn/index.md @@ -1,7 +1,7 @@ [[!meta title="Water Music"]] [[!if test="included()" then=""" -[[!img opera.jpg class="overview" link="/operahavn"]] +{{ img(path="opera.jpg" class="overview" link="/operahavn") }} Heldagsudflugt for en større gruppe til København mellem de gamle kanaler, med Operaen, sejlads, Holmen, Christianshavn og Christiania. @@ -11,11 +11,11 @@ med Operaen, sejlads, Holmen, Christianshavn og Christiania. """ else=""" [[!template id="deco" text=" -[[!img opera.jpg class="deco"]] -[[!img sidekanal.jpg class="deco"]] -[[!img georgstage.jpg class="deco"]] -[[!img mastekran.jpg class="deco"]] -[[!img sealandside.jpg class="deco"]] +{{ img(path="opera.jpg" class="deco") }} +{{ img(path="sidekanal.jpg" class="deco") }} +{{ img(path="georgstage.jpg" class="deco") }} +{{ img(path="mastekran.jpg" class="deco") }} +{{ img(path="sealandside.jpg" class="deco") }} "]] # "Water Music" Heldages-udflugt -- cgit v1.2.3