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/2018/julevideo.mdwn | 4 ---- video/2018/julevideo/index.md | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 video/2018/julevideo.mdwn create mode 100644 video/2018/julevideo/index.md (limited to 'video/2018') diff --git a/video/2018/julevideo.mdwn b/video/2018/julevideo.mdwn deleted file mode 100644 index 4c7b1c87..00000000 --- a/video/2018/julevideo.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!template id=video title="Julevideo" stem="2018/julevideo" width="480" height="272" nowebm=1 noogg=1]] - - -[[Læs mere om turen **Rør blot ikke ved min gamle Jul**|/gamlejul/]] diff --git a/video/2018/julevideo/index.md b/video/2018/julevideo/index.md new file mode 100644 index 00000000..4c7b1c87 --- /dev/null +++ b/video/2018/julevideo/index.md @@ -0,0 +1,4 @@ +[[!template id=video title="Julevideo" stem="2018/julevideo" width="480" height="272" nowebm=1 noogg=1]] + + +[[Læs mere om turen **Rør blot ikke ved min gamle Jul**|/gamlejul/]] -- cgit v1.2.3