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;' '{}' + ``` --- malmoe/gamlastan/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'malmoe/gamlastan') diff --git a/malmoe/gamlastan/index.md b/malmoe/gamlastan/index.md index 1c265741..a8a4ee2b 100644 --- a/malmoe/gamlastan/index.md +++ b/malmoe/gamlastan/index.md @@ -2,7 +2,7 @@ [[!if test="included()" then=""" -[[!img jugendgotik.jpg class="overview" link="/malmoe/gamlastan"]] +{{ img(path="jugendgotik.jpg" class="overview" link="/malmoe/gamlastan") }} Find ind til hjertet af Malmö. På denne tur bliver du bekendt med shopping og stræder i Gamla Stan, og bliver indført i byens spændende historie. @@ -13,9 +13,9 @@ shopping og stræder i Gamla Stan, og bliver indført i byens spændende histori else=""" [[!template id="deco" text=" -[[!img malmospringvand.jpg class="deco"]] -[[!img jugendgotik.jpg class="deco"]] -[[!img lillatorg.jpg class="deco"]] +{{ img(path="malmospringvand.jpg" class="deco") }} +{{ img(path="jugendgotik.jpg" class="deco") }} +{{ img(path="lillatorg.jpg" class="deco") }} "]] # Malmös Gamla Stan @@ -24,8 +24,8 @@ Denne tur udforsker Gamla Stan, der er Malmös middelalderby, med gågader, torveliv og gamle og nye huse. På et par timer får I overblik over shopping og spisning, og over byens historie i stilstand og storhedstider. -[[!template id=note text="""Byvandring I Malmö på ca. 2 timer. -**Start:** Centralstationen eller fx. Stora Torg, Gustav Adolfs Torg eller Malmöhus."""]] +{{ note(text="""Byvandring I Malmö på ca. 2 timer. +**Start:** Centralstationen eller fx. Stora Torg, Gustav Adolfs Torg eller Malmöhus.""") }} Malmö opstod ud af den livlige sildehandel i 1200-tallet, men snart voksede den til en af Danmarks vigtigste byer, hvor markante borgmestre -- cgit v1.2.3