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;' '{}' + ``` --- aabneture/index.md | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'aabneture/index.md') 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 -- cgit v1.2.3