diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-06-19 21:48:10 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-04-06 10:37:09 +0200 |
commit | 30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (patch) | |
tree | 2388bf9d3c5a3b617341285f284e888f5dd4c41e /christianshavn_besat | |
parent | e30097f4a9ffc42d57df2c463ae4770b61ff8769 (diff) |
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;' '{}' +
```
Diffstat (limited to 'christianshavn_besat')
-rw-r--r-- | christianshavn_besat/index.md | 12 |
1 files changed, 6 insertions, 6 deletions
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, |