summaryrefslogtreecommitdiff
path: root/malmoe/gamlastan
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-06-19 21:48:10 +0200
committerJonas Smedegaard <dr@jones.dk>2024-04-06 10:37:09 +0200
commit30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (patch)
tree2388bf9d3c5a3b617341285f284e888f5dd4c41e /malmoe/gamlastan
parente30097f4a9ffc42d57df2c463ae4770b61ff8769 (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 'malmoe/gamlastan')
-rw-r--r--malmoe/gamlastan/index.md12
1 files changed, 6 insertions, 6 deletions
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