summaryrefslogtreecommitdiff
path: root/frisex/index.md
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 /frisex/index.md
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 'frisex/index.md')
-rw-r--r--frisex/index.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/frisex/index.md b/frisex/index.md
index e7acee36..2bb9b2c4 100644
--- a/frisex/index.md
+++ b/frisex/index.md
@@ -2,7 +2,7 @@
[[!if test="included()" then="""
-[[!img /foredrag/kvinderet/friabort.jpg class="overview" link="/frisex"]]
+{{ img(path="/foredrag/kvinderet/friabort.jpg" class="overview" link="/frisex") }}
Turen følger kampen for det frie sexliv,
retten til abort, kampe og kulturudvikling fra 1924,
@@ -16,9 +16,9 @@ studenternes abortuge og kvindebevægelsens aktioner.
"""
else="""
[[!template id="deco" text="
-[[!img /foredrag/kvinderet/friabort.jpg class="deco"]]
-[[!img /foredrag/kvinderet/frisex.jpg class="deco"]]
-[[!img /foredrag/kvinderet/gudinde.jpg class="deco"]]
+{{ img(path="/foredrag/kvinderet/friabort.jpg" class="deco") }}
+{{ img(path="/foredrag/kvinderet/frisex.jpg" class="deco") }}
+{{ img(path="/foredrag/kvinderet/gudinde.jpg" class="deco") }}
"]]
#Fri sex