summaryrefslogtreecommitdiff
path: root/aabneture
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 /aabneture
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 'aabneture')
-rw-r--r--aabneture/index.md54
-rw-r--r--aabneture/regler/index.md10
2 files changed, 32 insertions, 32 deletions
diff --git a/aabneture/index.md b/aabneture/index.md
index e5c6095e..719145fa 100644
--- a/aabneture/index.md
+++ b/aabneture/index.md
@@ -2,38 +2,38 @@
[[!if test="included()" then="""
-[[!img aabneture2.jpg class="solo" link="aabneture" size="480x" ]]
+{{ img(path="aabneture2.jpg" class="solo" link="aabneture" size="480x") }}
"""
else="""
[[!template id="deco" text="
-[[!img /img/baggrdstur.jpg class="deco" size="200x"]]
-[[!img /img/banen.jpg class="deco" size="200x"]]
-[[!img /img/brydning_vesterbrogade.jpg class="deco" size="200x"]]
-[[!img /img/istedgade.jpg class="deco" size="200x"]]
-[[!img /img/klassicisme_statuer.jpg class="deco" size="200x"]]
-[[!img /img/kunstibyen_strgskulptur.jpg class="deco" size="200x"]]
-[[!img /img/nordhavn.jpg class="deco" size="200x"]]
-[[!img /img/ryesgade_bzkampe.jpg class="deco" size="200x"]]
-[[!img /metropolen/frihedsstotte_tegning.jpg class="deco" size="200x"]]
-[[!img bwdieselroed.jpg class="deco" size="200x"]]
-[[!img /vangede/alfabet_sol.jpg class="deco" size="200x"]]
-[[!img slag1659.jpg class="deco" size="200x"]]
-[[!img nedenvandetporte.jpg class="deco" size="200x"]]
-[[!img /cykelture/superkilecykel.jpg class="deco" size="200x"]]
-[[!img regnbueorientkaj.jpg class="deco" size="200x"]]
-[[!img gulparaply.jpg class="deco" size="200x"]]
-[[!img raadhustaarnet9april.jpg class="deco" size="200x"]]
-[[!img triangelbar.jpg class="deco" size="200x"]]
-[[!img /vejviseren/tippefaar/faarestrand.jpg class="deco" size="200x"]]
-[[!img 130428skthanstorv.jpg class="deco" size="200x"]]
-[[!img /nordhavn-cykel/kaffekul.jpg class="deco" size="200x"]]
-[[!img 8tallet_stevnen.jpg class="deco" size="200x"]]
-[[!img img/vestrekirkgd_krigsgrave.jpg class="deco" size="200x"]]
-[[!img 140330gruppeannette.jpg class="deco" size="200x"]]
-[[!img nilen_torv.jpg class="deco" size="200x"]]
-[[!img elefant_nr15.jpg class="deco" size="200x"]]
+{{ img(path="/img/baggrdstur.jpg" class="deco" size="200x") }}
+{{ img(path="/img/banen.jpg" class="deco" size="200x") }}
+{{ img(path="/img/brydning_vesterbrogade.jpg" class="deco" size="200x") }}
+{{ img(path="/img/istedgade.jpg" class="deco" size="200x") }}
+{{ img(path="/img/klassicisme_statuer.jpg" class="deco" size="200x") }}
+{{ img(path="/img/kunstibyen_strgskulptur.jpg" class="deco" size="200x") }}
+{{ img(path="/img/nordhavn.jpg" class="deco" size="200x") }}
+{{ img(path="/img/ryesgade_bzkampe.jpg" class="deco" size="200x") }}
+{{ img(path="/metropolen/frihedsstotte_tegning.jpg" class="deco" size="200x") }}
+{{ img(path="bwdieselroed.jpg" class="deco" size="200x") }}
+{{ img(path="/vangede/alfabet_sol.jpg" class="deco" size="200x") }}
+{{ img(path="slag1659.jpg" class="deco" size="200x") }}
+{{ img(path="nedenvandetporte.jpg" class="deco" size="200x") }}
+{{ img(path="/cykelture/superkilecykel.jpg" class="deco" size="200x") }}
+{{ img(path="regnbueorientkaj.jpg" class="deco" size="200x") }}
+{{ img(path="gulparaply.jpg" class="deco" size="200x") }}
+{{ img(path="raadhustaarnet9april.jpg" class="deco" size="200x") }}
+{{ img(path="triangelbar.jpg" class="deco" size="200x") }}
+{{ img(path="/vejviseren/tippefaar/faarestrand.jpg" class="deco" size="200x") }}
+{{ img(path="130428skthanstorv.jpg" class="deco" size="200x") }}
+{{ img(path="/nordhavn-cykel/kaffekul.jpg" class="deco" size="200x") }}
+{{ img(path="8tallet_stevnen.jpg" class="deco" size="200x") }}
+{{ img(path="img/vestrekirkgd_krigsgrave.jpg" class="deco" size="200x") }}
+{{ img(path="140330gruppeannette.jpg" class="deco" size="200x") }}
+{{ img(path="nilen_torv.jpg" class="deco" size="200x") }}
+{{ img(path="elefant_nr15.jpg" class="deco" size="200x") }}
"]]
# Åbne Ture
diff --git a/aabneture/regler/index.md b/aabneture/regler/index.md
index cd2df6ea..fc12dd96 100644
--- a/aabneture/regler/index.md
+++ b/aabneture/regler/index.md
@@ -10,11 +10,11 @@ Læs om tilmelding, børn, barnevogne og om at få oprettet den tur man lige øn
else="""
[[!template id="deco" text="
-[[!img /christianshavn/wildergruppe.jpg class="deco"]]
-[[!img /cykelture/Bryggebro-erik.jpg class="deco"]]
-[[!img /img/saxogadestop.jpg class="deco"]]
-[[!img /vejviseren/liv-i-ruden/liv-i-ruden-fernisering.jpg class="deco"]]
-[[!img /vejviseren/toveditlevsen_essay/td_vb_migskilt.jpg class="deco"]]
+{{ img(path="/christianshavn/wildergruppe.jpg" class="deco") }}
+{{ img(path="/cykelture/Bryggebro-erik.jpg" class="deco") }}
+{{ img(path="/img/saxogadestop.jpg" class="deco") }}
+{{ img(path="/vejviseren/liv-i-ruden/liv-i-ruden-fernisering.jpg" class="deco") }}
+{{ img(path="/vejviseren/toveditlevsen_essay/td_vb_migskilt.jpg" class="deco") }}
"]]
# Råd og Regler om Åbne Ture