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 /img | |
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 'img')
-rw-r--r-- | img/index.md | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/img/index.md b/img/index.md index 29acb47c..31270d09 100644 --- a/img/index.md +++ b/img/index.md @@ -1,32 +1,32 @@ # Billedarkivet -[[!img domhus_arrestvindu.jpg]] -[[!img domhus_benk.jpg]] -[[!img domhus_foyer.jpg]] -[[!img domhus_gang.jpg]] -[[!img domhus_nedgang.jpg]] -[[!img domhus_roset.jpg]] -[[!img domhus_sojler.jpg]] -[[!img domhus_solflimmer.jpg]] -[[!img domhus_sukkenesbro.jpg]] -[[!img domhus_total.jpg]] -[[!img domhus_trappe.jpg]] -[[!img domhus_trapper.jpg]] -[[!img domhus_vindu.jpg]] -[[!img raadhus_aften.jpg]] -[[!img raadhus_byvaaben.jpg]] -[[!img raadhus_karnov.jpg]] -[[!img raadhus_lavendelgade.jpg]] -[[!img raadhus_loftdeko.jpg]] -[[!img raadhus_nyropbillede.jpg]] -[[!img raadhus_portal.jpg]] -[[!img raadhus_relief.jpg]] -[[!img raadhus_reliefclose.jpg]] -[[!img raadhus_skoledemo.jpg]] -[[!img raadhus_solnedgang.jpg]] -[[!img raadhus_stauningbuste.jpg]] -[[!img raadhus_taarnspids.jpg]] -[[!img raadhus_talerstolfyr.jpg]] -[[!img raadhusbib_bogskab.jpg]] -[[!img raadhusbib_kandelaber_.jpg]] -[[!img raadhusbib_stol.jpg]] -[[!img jul_david_jacob_jacs_1853.jpg]] +{{ img(path="domhus_arrestvindu.jpg") }} +{{ img(path="domhus_benk.jpg") }} +{{ img(path="domhus_foyer.jpg") }} +{{ img(path="domhus_gang.jpg") }} +{{ img(path="domhus_nedgang.jpg") }} +{{ img(path="domhus_roset.jpg") }} +{{ img(path="domhus_sojler.jpg") }} +{{ img(path="domhus_solflimmer.jpg") }} +{{ img(path="domhus_sukkenesbro.jpg") }} +{{ img(path="domhus_total.jpg") }} +{{ img(path="domhus_trappe.jpg") }} +{{ img(path="domhus_trapper.jpg") }} +{{ img(path="domhus_vindu.jpg") }} +{{ img(path="raadhus_aften.jpg") }} +{{ img(path="raadhus_byvaaben.jpg") }} +{{ img(path="raadhus_karnov.jpg") }} +{{ img(path="raadhus_lavendelgade.jpg") }} +{{ img(path="raadhus_loftdeko.jpg") }} +{{ img(path="raadhus_nyropbillede.jpg") }} +{{ img(path="raadhus_portal.jpg") }} +{{ img(path="raadhus_relief.jpg") }} +{{ img(path="raadhus_reliefclose.jpg") }} +{{ img(path="raadhus_skoledemo.jpg") }} +{{ img(path="raadhus_solnedgang.jpg") }} +{{ img(path="raadhus_stauningbuste.jpg") }} +{{ img(path="raadhus_taarnspids.jpg") }} +{{ img(path="raadhus_talerstolfyr.jpg") }} +{{ img(path="raadhusbib_bogskab.jpg") }} +{{ img(path="raadhusbib_kandelaber_.jpg") }} +{{ img(path="raadhusbib_stol.jpg") }} +{{ img(path="jul_david_jacob_jacs_1853.jpg") }} |