diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-03-16 19:15:01 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-04-06 10:36:37 +0200 |
commit | e30097f4a9ffc42d57df2c463ae4770b61ff8769 (patch) | |
tree | d81a0f0c0153d99346cb1e123f7bc656991086b4 /blodstenen | |
parent | c0be7d8b7c4caa1e1077e91912e93dac6c4e6470 (diff) |
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})'
```
Diffstat (limited to 'blodstenen')
-rw-r--r-- | blodstenen/1/index.md (renamed from blodstenen/1.mdwn) | 0 | ||||
-rw-r--r-- | blodstenen/ballparkfigure/index.md (renamed from blodstenen/ballparkfigure.mdwn) | 0 | ||||
-rw-r--r-- | blodstenen/fælledsvar/index.md (renamed from blodstenen/fælledsvar.mdwn) | 0 |
3 files changed, 0 insertions, 0 deletions
diff --git a/blodstenen/1.mdwn b/blodstenen/1/index.md index 12211867..12211867 100644 --- a/blodstenen/1.mdwn +++ b/blodstenen/1/index.md diff --git a/blodstenen/ballparkfigure.mdwn b/blodstenen/ballparkfigure/index.md index 6eb9ef22..6eb9ef22 100644 --- a/blodstenen/ballparkfigure.mdwn +++ b/blodstenen/ballparkfigure/index.md diff --git a/blodstenen/fælledsvar.mdwn b/blodstenen/fælledsvar/index.md index e7d6a7b3..e7d6a7b3 100644 --- a/blodstenen/fælledsvar.mdwn +++ b/blodstenen/fælledsvar/index.md |