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})' ``` --- video/2021/01.mdwn | 1 - video/2021/01/index.md | 1 + video/2021/02.mdwn | 1 - video/2021/02/index.md | 1 + video/2021/03.mdwn | 1 - video/2021/03/index.md | 1 + video/2021/04.mdwn | 1 - video/2021/04/index.md | 1 + video/2021/05.mdwn | 1 - video/2021/05/index.md | 1 + 10 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 video/2021/01.mdwn create mode 100644 video/2021/01/index.md delete mode 100644 video/2021/02.mdwn create mode 100644 video/2021/02/index.md delete mode 100644 video/2021/03.mdwn create mode 100644 video/2021/03/index.md delete mode 100644 video/2021/04.mdwn create mode 100644 video/2021/04/index.md delete mode 100644 video/2021/05.mdwn create mode 100644 video/2021/05/index.md (limited to 'video/2021') diff --git a/video/2021/01.mdwn b/video/2021/01.mdwn deleted file mode 100644 index a61645f2..00000000 --- a/video/2021/01.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!template id=video title="Kan du gætte hvem jeg er 1" stem="2021/01" width="640" height="360"]] diff --git a/video/2021/01/index.md b/video/2021/01/index.md new file mode 100644 index 00000000..a61645f2 --- /dev/null +++ b/video/2021/01/index.md @@ -0,0 +1 @@ +[[!template id=video title="Kan du gætte hvem jeg er 1" stem="2021/01" width="640" height="360"]] diff --git a/video/2021/02.mdwn b/video/2021/02.mdwn deleted file mode 100644 index 046296a8..00000000 --- a/video/2021/02.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!template id=video title="Kan du gætte hvem jeg er 2" stem="2021/02" width="640" height="360"]] diff --git a/video/2021/02/index.md b/video/2021/02/index.md new file mode 100644 index 00000000..046296a8 --- /dev/null +++ b/video/2021/02/index.md @@ -0,0 +1 @@ +[[!template id=video title="Kan du gætte hvem jeg er 2" stem="2021/02" width="640" height="360"]] diff --git a/video/2021/03.mdwn b/video/2021/03.mdwn deleted file mode 100644 index b1bc3d74..00000000 --- a/video/2021/03.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!template id=video title="Sankt Hans Torv - i begyndelsen" stem="2021/03" width="640" height="360"]] diff --git a/video/2021/03/index.md b/video/2021/03/index.md new file mode 100644 index 00000000..b1bc3d74 --- /dev/null +++ b/video/2021/03/index.md @@ -0,0 +1 @@ +[[!template id=video title="Sankt Hans Torv - i begyndelsen" stem="2021/03" width="640" height="360"]] diff --git a/video/2021/04.mdwn b/video/2021/04.mdwn deleted file mode 100644 index bf5da9eb..00000000 --- a/video/2021/04.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!template id=video title="Sankt Hans Torv - Slaget på Fælleden" stem="2021/04" width="640" height="360"]] diff --git a/video/2021/04/index.md b/video/2021/04/index.md new file mode 100644 index 00000000..bf5da9eb --- /dev/null +++ b/video/2021/04/index.md @@ -0,0 +1 @@ +[[!template id=video title="Sankt Hans Torv - Slaget på Fælleden" stem="2021/04" width="640" height="360"]] diff --git a/video/2021/05.mdwn b/video/2021/05.mdwn deleted file mode 100644 index 00216eb1..00000000 --- a/video/2021/05.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!template id=video title="Sankt Hans Torv - 1993" stem="2021/05" width="640" height="360"]] diff --git a/video/2021/05/index.md b/video/2021/05/index.md new file mode 100644 index 00000000..00216eb1 --- /dev/null +++ b/video/2021/05/index.md @@ -0,0 +1 @@ +[[!template id=video title="Sankt Hans Torv - 1993" stem="2021/05" width="640" height="360"]] -- cgit v1.2.3