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;' '{}' + ``` --- vesterbromodstand/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vesterbromodstand') diff --git a/vesterbromodstand/index.md b/vesterbromodstand/index.md index 06ba2881..368e0432 100644 --- a/vesterbromodstand/index.md +++ b/vesterbromodstand/index.md @@ -1,7 +1,7 @@ [[!meta title="Vesterbro gør Modstand 1940-45"]] [[!if test="included()" then=""" -[[!img /img/V_besat_starradio.jpg class="overview" link="/vesterbromodstand"]] +{{ img(path="/img/V_besat_starradio.jpg" class="overview" link="/vesterbromodstand") }} Tyskerne besatte Danmark i 1940, men Vesterbro kom de aldrig til at dominere. Vi følger modstandsbevægelsen fra Stjerne Radio til Folkestrejken i Istedgade, @@ -12,10 +12,10 @@ og kigger indenfor i en ganske særlig bunker. else=""" [[!template id="deco" text=" -[[!img /img/V_besat_starradio.jpg class="deco"]] -[[!img /img/thomasw_istedgade.jpg class="deco"]] -[[!img /img/istedgade_cykelstol.jpg class="deco"]] -[[!img /img/V_besat_sdrblvd.jpg class="deco"]] +{{ img(path="/img/V_besat_starradio.jpg" class="deco") }} +{{ img(path="/img/thomasw_istedgade.jpg" class="deco") }} +{{ img(path="/img/istedgade_cykelstol.jpg" class="deco") }} +{{ img(path="/img/V_besat_sdrblvd.jpg" class="deco") }} "]] # Vesterbro gør Modstand 1940-45 **Vesterbroere og modstandsfolk under den tyske besættelse** -- cgit v1.2.3