summaryrefslogtreecommitdiff
path: root/sydvestnatur
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 /sydvestnatur
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 'sydvestnatur')
-rw-r--r--sydvestnatur/index.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/sydvestnatur/index.md b/sydvestnatur/index.md
index 6696a5ab..0a8c0353 100644
--- a/sydvestnatur/index.md
+++ b/sydvestnatur/index.md
@@ -2,7 +2,7 @@
[[!if test="included()" then="""
-[[!img strandcirkel.jpg class="overview" link="/sydvestnatur"]]
+{{ img(path="strandcirkel.jpg" class="overview" link="/sydvestnatur") }}
Naturen er altid tæt på det gamle København SV.
Vi finder smutvejene fra boligblokkene i arbejderbyen ud i det grønne,
med haveforeninger, kratskov, park og vildnis.
@@ -12,11 +12,11 @@ Følg historien om by, mennesker og natur, der tilpasser sig hinanden.
else="""
[[!template id="deco" text="
-[[!img karensmindesydfra.jpg class="deco"]]
-[[!img strandcirkel.jpg class="deco"]]
-[[!img alpacaer.jpg class="deco"]]
-[[!img kolonihavedeco.jpg class="deco"]]
-[[!img HF_forklar.jpg class="deco"]]
+{{ img(path="karensmindesydfra.jpg" class="deco") }}
+{{ img(path="strandcirkel.jpg" class="deco") }}
+{{ img(path="alpacaer.jpg" class="deco") }}
+{{ img(path="kolonihavedeco.jpg" class="deco") }}
+{{ img(path="HF_forklar.jpg" class="deco") }}
"]]
#Det vilde Sydvest