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 /kbh_1814 | |
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 'kbh_1814')
-rw-r--r-- | kbh_1814/index.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kbh_1814/index.md b/kbh_1814/index.md index 721292c1..6c939476 100644 --- a/kbh_1814/index.md +++ b/kbh_1814/index.md @@ -2,7 +2,7 @@ [[!if test="included()" then=""" -[[!img /norsketure/norsk-flag.jpg class="overview" link="/kbh_1814"]] +{{ img(path="/norsketure/norsk-flag.jpg" class="overview" link="/kbh_1814") }} Turen fortæller om nordmænd i København, familier der måtte vælge fædreland da bruddet endelig kom, og om Christian Frederik, der var tre måneders Konge af Norge, @@ -11,12 +11,12 @@ da bruddet endelig kom, og om Christian Frederik, der var tre måneders Konge af """ else=""" [[!template id="deco" text=" -[[!img norsketure/nyhavnisol.jpg class="deco"]] -[[!img norsketure/wesselmindeplade.jpg class="deco"]] -[[!img norsketure/KBHBraender2.jpg class="deco"]] -[[!img norsketure/norsk-flag.jpg class="deco"]] -[[!img norsketure/kultorvkioskblomst.jpg class="deco"]] -[[!img norsketure/Berninaint.jpg class="deco"]] +{{ img(path="norsketure/nyhavnisol.jpg" class="deco") }} +{{ img(path="norsketure/wesselmindeplade.jpg" class="deco") }} +{{ img(path="norsketure/KBHBraender2.jpg" class="deco") }} +{{ img(path="norsketure/norsk-flag.jpg" class="deco") }} +{{ img(path="norsketure/kultorvkioskblomst.jpg" class="deco") }} +{{ img(path="norsketure/Berninaint.jpg" class="deco") }} "]] ## København 1814 |