diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-06-19 21:48:10 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-04-06 10:37:09 +0200 |
commit | 30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (patch) | |
tree | 2388bf9d3c5a3b617341285f284e888f5dd4c41e /aabneture/index.md | |
parent | e30097f4a9ffc42d57df2c463ae4770b61ff8769 (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/index.md')
-rw-r--r-- | aabneture/index.md | 54 |
1 files changed, 27 insertions, 27 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 |