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;' '{}' + ``` --- beerwalk/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beerwalk/index.md') diff --git a/beerwalk/index.md b/beerwalk/index.md index 9d67c1cc..f1285c95 100644 --- a/beerwalk/index.md +++ b/beerwalk/index.md @@ -2,7 +2,7 @@ [[!if test="included()" then=""" -[[!img vindue_beerwalkstemning.jpg link="/beerwalk"]] +{{ img(path="vindue_beerwalkstemning.jpg" link="/beerwalk") }} """]] @@ -48,7 +48,7 @@ indeholdende et smagsglas, en folder med barer og seks poletter. Byvandring.nu sælger ikke pakkerne. -[[!img boksindhold.jpg class="solo" size="450x"]] +{{ img(path="boksindhold.jpg" class="solo" size="450x") }} Vi vil udvide konceptet med ølsmageture i andre bydele efterhånden, i samarbejde med Copenhagen Beerwalk. -- cgit v1.2.3