summaryrefslogtreecommitdiff
path: root/juleevent
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2022-06-19 21:48:10 +0200
committerJonas Smedegaard <dr@jones.dk>2024-04-06 10:37:09 +0200
commit30b9669ea95e6b3b4f48a25c8045c2b4f551dacd (patch)
tree2388bf9d3c5a3b617341285f284e888f5dd4c41e /juleevent
parente30097f4a9ffc42d57df2c463ae4770b61ff8769 (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 'juleevent')
-rw-r--r--juleevent/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/juleevent/index.md b/juleevent/index.md
index 7d72e801..ac670366 100644
--- a/juleevent/index.md
+++ b/juleevent/index.md
@@ -1,7 +1,7 @@
[[!meta title="Julearrangementer"]]
[[!if test="included() and !destpage(index)" then="""
-[[!img nilenjul.jpg class="solo" link="/juleevent"]]
+{{ img(path="nilenjul.jpg" class="solo" link="/juleevent") }}
Byvandring.nu byder på hjemmelavede julearrangementer.
Vi krydrer turen, så den passer til jer.
@@ -12,7 +12,7 @@ eller optakt til julefrokosten.
"""]]
[[!if test="included()" then="""
-[[!img nilenjul.jpg link="juleevent" class="solo" size="480x" ]]
+{{ img(path="nilenjul.jpg" link="juleevent" class="solo" size="480x") }}
"""]]
[[!if test="!included()" then="""