summaryrefslogtreecommitdiff
path: root/tours
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 /tours
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 'tours')
-rw-r--r--tours/index.md58
-rw-r--r--tours/turlisten/index.md4
2 files changed, 31 insertions, 31 deletions
diff --git a/tours/index.md b/tours/index.md
index 1baebe17..d32238e7 100644
--- a/tours/index.md
+++ b/tours/index.md
@@ -10,7 +10,7 @@ Flere ture kan bestilles som foredrag. [[Se oversigten her.|foredrag]]
[[!template id=grid-item content=<<GRIDITEM
### [[Den indre by|city]]
-[[!img oversigtfruetaarn2_x100.jpg link="city" class="flex"]]
+{{ img(path="oversigtfruetaarn2_x100.jpg" link="city" class="flex") }}
[[Læs om indre by|city]]
[[!toggle id="city" text="Fold liste ud" ]]
[[!toggleable id="city" text="""[[!inline pages="tagged(city) and tagged(ture) and !tagged(tema) and !tagged(historie) and !tagged(skole)" archive=yes]]"""]]
@@ -19,7 +19,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Christianshavn|christianshavn]]
-[[!img chrhavn_bogmrk.jpg class="flex" link="christianshavn"]]
+{{ img(path="chrhavn_bogmrk.jpg" class="flex" link="christianshavn") }}
[[Læs om kvarteret|christianshavn]]
[[!toggle id="christianshavn" text="Fold liste ud" ]]
[[!toggleable id="christianshavn" text="""[[!inline pages="tagged(ture) and tagged(christianshavn) and !tagged(skole)" archive=yes]]"""]]
@@ -27,7 +27,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Københavns havn|havnen]]
-[[!img brygge_mod_sebbygning_x100.jpg link="havnen" class="flex"]]
+{{ img(path="brygge_mod_sebbygning_x100.jpg" link="havnen" class="flex") }}
[[Læs om området|havnen]]
[[!toggle id="havnen" text="Fold liste ud" ]]
[[!toggleable id="havnen" text="""[[!inline pages="tagged(ture) and tagged(havnen) and !tagged(skole)" archive=yes]]"""]]
@@ -35,7 +35,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Slotsholmen]]
-[[!img slotsholmen_100px.jpg class="flex" link="slotsholmen"]]
+{{ img(path="slotsholmen_100px.jpg" class="flex" link="slotsholmen") }}
[[Læs om området|slotsholmen]]
[[!toggle id="slotsholmen" text="Fold liste ud" ]]
[[!toggleable id="slotsholmen" text="""[[!inline pages="tagged(ture) and tagged(slotsholmen) and !tagged(skole)" archive=yes]]"""]]
@@ -43,7 +43,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Nørrevold og Østervold|voldkvarter]]
-[[!img vkort_palmehus_x100.jpg class="flex" link="voldkvarter"]]
+{{ img(path="vkort_palmehus_x100.jpg" class="flex" link="voldkvarter") }}
[[Læs om kvarteret|voldkvarter]]
[[!toggle id="voldkvarter" text="Fold liste ud" ]]
[[!toggleable id="voldkvarter" text="""[[!inline pages="tagged(ture) and tagged(voldkvarter) and !tagged(skole)" archive=yes]]"""]]
@@ -57,7 +57,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Frederiksberg]]
-[[!img oversigtfrederiksberg_x100.jpg link="frederiksberg" class="flex"]]
+{{ img(path="oversigtfrederiksberg_x100.jpg" link="frederiksberg" class="flex") }}
[[Læs om byen i byen|frederiksberg]]
[[!toggle id="frederiksberg" text="Fold liste ud" ]]
[[!toggleable id="frederiksberg" text="""[[!inline pages="tagged(ture) and tagged(frederiksberg) and !tagged(skole)" archive=yes]]"""]]
@@ -71,7 +71,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Vesterbro]]
-[[!img Istedgade_banner_x100.jpg link="vesterbro" class="flex"]]
+{{ img(path="Istedgade_banner_x100.jpg" link="vesterbro" class="flex") }}
[[Læs om kvarteret|vesterbro]]
[[!toggle id="vesterbro" text="Fold liste ud" ]]
[[!toggleable id="vesterbro" text="""[[!inline pages="tagged(ture) and tagged(vesterbro) and !tagged(skole)" archive=yes]]"""]]
@@ -79,7 +79,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Nørrebro|norrebro]]
-[[!img superkile_banner_x100.jpg link="norrebro" class="flex"]]
+{{ img(path="superkile_banner_x100.jpg" link="norrebro" class="flex") }}
[[Læs om kvarteret|norrebro]]
[[!toggle id="norrebro" text="Fold liste ud" ]]
[[!toggleable id="norrebro" text="""[[!inline pages="tagged(ture) and tagged(norrebro) and !tagged(skole)" archive=yes]]"""]]
@@ -87,7 +87,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Østerbro|osterbro]]
-[[!img vkort_plakatpost_x100.jpg link="osterbro" class="flex"]]
+{{ img(path="vkort_plakatpost_x100.jpg" link="osterbro" class="flex") }}
[[Læs om kvarteret|osterbro]]
[[!toggle id="osterbro" text="Fold liste ud" ]]
[[!toggleable id="osterbro" text="""[[!inline pages="tagged(ture) and tagged(osterbro) and !tagged(skole)" archive=yes]]"""]]
@@ -95,7 +95,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Bispebjerg og Nordvest|bispebjerg]]
-[[!img bispebjergx100.jpg link="bispebjerg" class="flex"]]
+{{ img(path="bispebjergx100.jpg" link="bispebjerg" class="flex") }}
[[Læs om kvarteret|bispebjerg]]
[[!toggle id="bispebjerg" text="Fold liste ud"]]
[[!toggleable id="bispebjerg" text"""[[!inline pages=tagged(ture) and tagged(bispebjerg) and !tagged(skole)" archive=yes]]"""]]
@@ -103,7 +103,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Sydhavnen og Kgs. Enghave|sydhavnen]]
-[[!img vkort_slusebro2_x100.jpg link="sydvest" class="flex"]]
+{{ img(path="vkort_slusebro2_x100.jpg" link="sydvest" class="flex") }}
[[Læs om kvarteret|sydhavnen]]
[[!toggle id="sydvest" text="Fold liste ud" ]]
[[!toggleable id="sydvest" text="""[[!inline pages="tagged(ture) and tagged(sydhavnen) and !tagged(skole)" archive=yes]]"""]]
@@ -111,7 +111,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Islands Brygge|islandsbrygge]]
-[[!img brygge_mod_sebbygning_x100.jpg link="islandsbrygge" class="flex"]]
+{{ img(path="brygge_mod_sebbygning_x100.jpg" link="islandsbrygge" class="flex") }}
[[Læs om kvarteret|islandsbrygge]]
[[!toggle id="bryggen" text="Fold liste ud" ]]
[[!toggleable id="bryggen" text="""[[!inline pages="tagged(ture) and tagged(islandsbrygge) and !tagged(skole)" archive=yes]]"""]]
@@ -119,7 +119,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Amager]]
-[[!img amager/oversigtamager_x100.jpg link="amager" class="flex"]]
+{{ img(path="amager/oversigtamager_x100.jpg" link="amager" class="flex") }}
[[Læs om kvarteret|amager]]
[[!toggle id="amager" text="Fold liste ud" ]]
[[!toggleable id="amager" text="""[[!inline pages="tagged(ture) and tagged(amager) and !tagged(skole)" archive=yes]]"""]]
@@ -127,7 +127,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Valby]]
-[[!img nordisk-film_x100.jpg link="valby" class="flex"]]
+{{ img(path="nordisk-film_x100.jpg" link="valby" class="flex") }}
[[Læs om kvarteret|valby]]
[[!toggle id="valby" text="Fold liste ud" ]]
[[!toggleable id="valby" text="""[[!inline pages="tagged(ture) and tagged(valby) and !tagged(skole)" archive=yes]]"""]]
@@ -143,7 +143,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Nordsjælland|region]]
-[[!img kronbogmist_x100.jpg class="flex" link="region"]]
+{{ img(path="kronbogmist_x100.jpg" class="flex" link="region") }}
[[Læs om turene|region]]
[[!toggle id="region" text="Fold liste ud" ]]
[[!toggleable id="region" text="""[[!inline pages="tagged(ture) and tagged(region) and !tagged(skole)" archive=yes]]"""]]
@@ -151,13 +151,13 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Roskilde|roskilde]]
-[[!img oversigtmusicon_x100.jpg class="flex" link="roskilde"]]
+{{ img(path="oversigtmusicon_x100.jpg" class="flex" link="roskilde") }}
[[Læs om turene|roskilde]]
GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Malmö|malmoe]]
-[[!img oversigtmalmo_flensborghus_x100.jpg class="flex" link="malmoe"]]
+{{ img(path="oversigtmalmo_flensborghus_x100.jpg" class="flex" link="malmoe") }}
[[Læs om turene|malmoe]]
[[!toggle id="malmoe" text="Fold liste ud" ]]
[[!toggleable id="malmoe" text="""[[!inline pages="tagged(ture) and tagged(malmoe) and !tagged(skole)" archive=yes]]"""]]
@@ -173,7 +173,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Historiske ture|historieture]]
-[[!img vkort_gjeddeskort_x100.jpg link="historieture" class="flex"]]
+{{ img(path="vkort_gjeddeskort_x100.jpg" link="historieture" class="flex") }}
[[Læs om turene|historieture]]
[[!toggle id="historie" text="Fold liste ud/ind" ]]
[[!toggleable id="historie" text="""[[!inline pages="tagged(ture) and tagged(historie) and !tagged(skole) and !tagged(litteratur) and !tagged(besat)" archive=yes]]"""]]
@@ -183,7 +183,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Byudvikling]]
-[[!img oversigtbyudvikling_x100.jpg link="byudvikling" class="flex"]]
+{{ img(path="oversigtbyudvikling_x100.jpg" link="byudvikling" class="flex") }}
[[Læs om turene|byudvikling]]
[[!toggle id="byudvikling" text="Fold liste ud/ind" ]]
[[!toggleable id="byudvikling" text="""[[!inline pages="tagged(byudvikling) and tagged(ture) and !tagged(skole)" archive=yes]]"""]]
@@ -191,7 +191,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Dansk erhverv og industri|industri]]
-[[!img storenord_x100.jpg link="industri" class="flex"]]
+{{ img(path="storenord_x100.jpg" link="industri" class="flex") }}
[[Læs om turene|industri]]
[[!toggle id="industri" text="Fold liste ud/ind" ]]
[[!toggleable id="industri" text="""[[!inline pages="tagged(industri) and tagged(ture) and !tagged(skole)" archive=yes]]"""]]
@@ -199,7 +199,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Cykelture]]
-[[!img jagtvejbred_x100.jpg link="cykelture" class="flex"]]
+{{ img(path="jagtvejbred_x100.jpg" link="cykelture" class="flex") }}
[[Læs om turene|cykelture]]
[[!toggle id="cykelture" text="Fold liste ud/ind" ]]
[[!toggleable id="cykelture" text="""[[!inline pages="tagged(cykel) and tagged(ture) and !tagged(skole)" archive=yes]]"""]]
@@ -207,13 +207,13 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Ture til søs|sejlture]]
-[[!img oversigtturetilsoes_x100.jpg link="sejlture" class="flex"]]
+{{ img(path="oversigtturetilsoes_x100.jpg" link="sejlture" class="flex") }}
[[Læs om turene|sejlture]]
GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Beerwalks|beerwalk]]
-[[!img beerwalkstemning_x100.jpg class="flex" link="beerwalk"]]
+{{ img(path="beerwalkstemning_x100.jpg" class="flex" link="beerwalk") }}
[[Læs om turene|beerwalk]]
[[!toggle id="beerwalk" text="Fold liste ud/ind" ]]
[[!toggleable id="beerwalk" text="""[[!inline pages="tagged(ture) and tagged(beerwalk)" archive=yes]]"""]]
@@ -221,7 +221,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Byens forfattere og digtere|litteratur]]
-[[!img alfabet_sol_x100.jpg class="flex" link="kunst"]]
+{{ img(path="alfabet_sol_x100.jpg" class="flex" link="kunst") }}
[[Læs om turene|litteratur]]
[[!toggle id="litteratur" text="Fold liste ud/ind" ]]
[[!toggleable id="litteratur" text="""[[!inline pages="tagged(ture) and tagged(litteratur) and !tagged(skole)" archive=yes]]"""]]
@@ -229,7 +229,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Kunstture|kunst]]
-[[!img arsenalportsfinx_x100.jpg class="flex" link="kunst"]]
+{{ img(path="arsenalportsfinx_x100.jpg" class="flex" link="kunst") }}
[[Læs om turene|kunst]]
[[!toggle id="kunst" text="Fold liste ud/ind" ]]
[[!toggleable id="kunst" text="""[[!inline pages="tagged(ture) and tagged(kunst)" archive=yes]]"""]]
@@ -237,7 +237,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[H.C. Andersen|hcandersen]]
-[[!img hca_100px.jpg class="flex" link="hcandersen"]]
+{{ img(path="hca_100px.jpg" class="flex" link="hcandersen") }}
[[Læs om turene|hcandersen]]
[[!toggle id="hcandersen" text="Fold liste ud/ind" ]]
[[!toggleable id="hcandersen" text="""[[!inline pages="tagged(ture) and tagged(hc_andersen)" archive=yes]]"""]]
@@ -245,7 +245,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Juleture|juleevent]]
-[[!img oversigtjuleture_x100.jpg class="flex" link="juleevent"]]
+{{ img(path="oversigtjuleture_x100.jpg" class="flex" link="juleevent") }}
[[Læs om turene|juleevent]]
[[!toggle id="jul" text="Fold liste ud/ind" ]]
[[!toggleable id="jul" text="""[[!inline pages="tagged(ture) and tagged(jul)" archive=yes]]"""]]
@@ -253,7 +253,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Norske ture i København|norsketure]]
-[[!img nyhavnisol_x100.jpg class="flex" link="norsketure"]]
+{{ img(path="nyhavnisol_x100.jpg" class="flex" link="norsketure") }}
[[Læs om turene|norsketure]]
[[!toggle id="norsk" text="Fold liste ud/ind" ]]
[[!toggleable id="norsk" text="""[[!inline pages="tagged(ture) and tagged(norsk)" archive=yes]]"""]]
@@ -261,7 +261,7 @@ GRIDITEM]]
[[!template id=grid-item content=<<GRIDITEM
### [[Kirkegårdsture|assistens]]
-[[!img bodenhoff_x100.jpg class="flex" link="assistens"]]
+{{ img(path="bodenhoff_x100.jpg" class="flex" link="assistens") }}
[[Læs om turene|assistens]]
[[!toggle id="kirkegaarde" text="Fold liste ud/ind" ]]
[[!toggleable id="kirkegaarde" text="""[[!inline pages="tagged(ture) and tagged(kirkegaarde)" archive=yes]]"""]]
diff --git a/tours/turlisten/index.md b/tours/turlisten/index.md
index 8b3c0e00..69991505 100644
--- a/tours/turlisten/index.md
+++ b/tours/turlisten/index.md
@@ -1,10 +1,10 @@
[[!if test="included() and !(destpage(index) or destpage(test))" then="""
[[!template id="deco" text="
-[[!img tours/vindue_turliste.jpg class="deco" link="/tours" ]]
+{{ img(path="tours/vindue_turliste.jpg" class="deco" link="/tours") }}
"]]
"""]]
[[!if test="included()" then="""
-[[!img tours/vindue_turliste.jpg link="/tours" class="solo" ]]
+{{ img(path="tours/vindue_turliste.jpg" link="/tours" class="solo") }}
"""]]
[[!if test="!included()" then="""
[[!inline pages=tours raw=yes]]