From e30097f4a9ffc42d57df2c463ae4770b61ff8769 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 16 Mar 2020 19:15:01 +0100 Subject: rename *.mdwn to */index.md, except index/topbar/farbar/sidebar files command: ``` perl -MPath::Tiny -WE 'use strict; path(".")->visit(sub{return unless -f && /\.mdwn$/; my $stem=$_->basename(".mdwn"); my $new=$_->sibling($stem,"index.md"); return if $stem =~ /^index|topbar|sidebar|farbar|footer$/ || $new->exists; $new->parent->mkpath; system("git","mv", $_, $new)},{recurse=>1})' ``` --- test/osterbro-attraktion-tur/index.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/osterbro-attraktion-tur/index.md (limited to 'test/osterbro-attraktion-tur/index.md') diff --git a/test/osterbro-attraktion-tur/index.md b/test/osterbro-attraktion-tur/index.md new file mode 100644 index 00000000..4dcae232 --- /dev/null +++ b/test/osterbro-attraktion-tur/index.md @@ -0,0 +1,7 @@ +[[!meta title="Østerbros attraktioner"]] +# [[Østerbros attraktioner|/osterbro-attraktion]] +[[!template id=map bounds-nw="55.709, 12.56261" bounds-se="55.6965, 12.5911"]] + -- cgit v1.2.3