update conversion script to split out months too.

This commit is contained in:
Solomon Peachy 2013-08-29 22:58:56 -04:00
parent 001c5dac09
commit f1c28ec52e

View file

@ -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);
}