update conversion script to split out months too.
This commit is contained in:
parent
001c5dac09
commit
f1c28ec52e
|
@ -160,9 +160,11 @@ close(OUT);
|
|||
# Note that subdirectories for each year are created.
|
||||
|
||||
my $year = &UnixDate($date, "%Y");
|
||||
mkdir($year);
|
||||
my $month = &UnixDate($date, "%m");
|
||||
mkdir("$year");
|
||||
mkdir("$year/$month");
|
||||
|
||||
open(OUT, ">" . $year . "/" . sanitize($title) . ".mdwn") or die "Unable to open article output file";
|
||||
open(OUT, ">" . $year . "/" . $month . "/" . sanitize($title) . ".mdwn") or die "Unable to open article output file";
|
||||
print OUT $formatted_article;
|
||||
close(OUT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue