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;' '{}' + ``` --- christianshavn_besat/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'christianshavn_besat') diff --git a/christianshavn_besat/index.md b/christianshavn_besat/index.md index 86e2bea2..c53ed149 100644 --- a/christianshavn_besat/index.md +++ b/christianshavn_besat/index.md @@ -1,7 +1,7 @@ [[!meta title="Christianshavn i Sigtekornet"]] [[!if test="included()" then=""" -[[!img bwdieselroed.jpg class="overview" size="200x" link="/christianshavn_besat"]] +{{ img(path="bwdieselroed.jpg" class="overview" size="200x" link="/christianshavn_besat") }} Havne- og kanalkvarteret var tætbeboet med industri, arbejdere og søfolk. BOPA og Holger Danske lavede aktioner i området. @@ -17,11 +17,11 @@ else=""" # Christianshavn i Sigtekornet [[!template id="deco" text=" -[[!img frelsertaarn.jpg class="deco" size="200x" ]] -[[!img bwdieselroed.jpg class="deco" size="200x" ]] -[[!img nedenvandetporte.jpg class="deco" size="200x" ]] -[[!img chxkanalgammel.jpg class="deco" size="200x" ]] -[[!img thomasw_chx.jpg class="deco" size="200x" ]] +{{ img(path="frelsertaarn.jpg" class="deco" size="200x") }} +{{ img(path="bwdieselroed.jpg" class="deco" size="200x") }} +{{ img(path="nedenvandetporte.jpg" class="deco" size="200x") }} +{{ img(path="chxkanalgammel.jpg" class="deco" size="200x") }} +{{ img(path="thomasw_chx.jpg" class="deco" size="200x") }} "]] Christianshavn i 1940 var et tæt befolket kvarter med usle boliger og ny funkis, -- cgit v1.2.3