summaryrefslogtreecommitdiff
path: root/udflugtkbh
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 /udflugtkbh
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 'udflugtkbh')
-rw-r--r--udflugtkbh/index.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/udflugtkbh/index.md b/udflugtkbh/index.md
index 2fbdebc2..d8a5894f 100644
--- a/udflugtkbh/index.md
+++ b/udflugtkbh/index.md
@@ -1,7 +1,7 @@
[[!meta title="Udflugter med opgaver"]]
[[!if test="included() and !(destpage(index) or destpage(test))" then="""
-[[!img islanddynamics_apple.jpg class="solo" link="/udflugtkbh" ]]
+{{ img(path="islanddynamics_apple.jpg" class="solo" link="/udflugtkbh") }}
# Ture med udfordringer
Arrangementer med quiz, opgaver, leg og inspiration.
@@ -13,19 +13,19 @@ til gruppen og stemningen.
"""]]
[[!if test="included()" then="""
-[[!img islanddynamics_apple_front.jpg link="/udflugtkbh"]]
+{{ img(path="islanddynamics_apple_front.jpg" link="/udflugtkbh") }}
"""]]
[[!if test="!included()" then="""
[[!template id="deco" text="
-[[!img dyst1_nytorv.jpg class="deco"]]
-[[!img croquet.jpg class="deco"]]
-[[!img froerundetaarn.jpg class="deco"]]
-[[!img sunsetdrinks.jpg class="deco"]]
-[[!img skovtur.jpg class="deco"]]
-[[!img islanddynamics_apple.jpg class="deco"]]
+{{ img(path="dyst1_nytorv.jpg" class="deco") }}
+{{ img(path="croquet.jpg" class="deco") }}
+{{ img(path="froerundetaarn.jpg" class="deco") }}
+{{ img(path="sunsetdrinks.jpg" class="deco") }}
+{{ img(path="skovtur.jpg" class="deco") }}
+{{ img(path="islanddynamics_apple.jpg" class="deco") }}
"]]
# Ture med udfordringer
**Arrangementer med quiz, opgaver, leg og inspiration.**