diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-12-10 13:05:05 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-04-06 10:37:57 +0200 |
commit | 27a11136d48d0a085eb51bea0361e46b06652165 (patch) | |
tree | 77fd3918a23b8d5090d924e23fad7bc4d65cb87f /test | |
parent | 2375e48f618997cb6afbf8dd0ff51485a8cacd70 (diff) |
convert internal rooted links from ikiwiki directive to zola shortcode
command:
```
find * -type f -name '*.md' -execdir perl -gpi -e 's,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?)\/?(?<!\.pdf)(#[^\[\]]*)?\s*\]\],[$1](\@$2/index.md$3),g; s,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?\.pdf)\s*\]\],[$1]($2),g;' '{}' +
```
Diffstat (limited to 'test')
-rw-r--r-- | test/osterbro-attraktion-tur/index.md | 2 | ||||
-rw-r--r-- | test/tordenskjold/index.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/osterbro-attraktion-tur/index.md b/test/osterbro-attraktion-tur/index.md index d49302e7..f753ec1a 100644 --- a/test/osterbro-attraktion-tur/index.md +++ b/test/osterbro-attraktion-tur/index.md @@ -1,7 +1,7 @@ +++ title="Østerbros attraktioner" +++ -# [[Østerbros attraktioner|/osterbro-attraktion]] +# [Østerbros attraktioner](@/osterbro-attraktion/index.md) [[!template id=map bounds-nw="55.709, 12.56261" bounds-se="55.6965, 12.5911"]] <script> var waypoint = L.marker([55.6992, 12.5772]).addTo(map); diff --git a/test/tordenskjold/index.md b/test/tordenskjold/index.md index 5d1cd905..12fe191d 100644 --- a/test/tordenskjold/index.md +++ b/test/tordenskjold/index.md @@ -7,7 +7,7 @@ I februar 2016 rider Tordenskjold over lærredet i en barok road movie om venska {{ img(path="/vejviseren/tordenskjold/artmoney_tordenskjold.jpg" size="400x") }} -[[Læs mere...|/vejviseren/tordenskjold/]] +[Læs mere...](@/vejviseren/tordenskjold/index.md) """ else=""" |