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