diff options
author | 53hornet <atc@53hor.net> | 2022-01-14 22:09:56 -0500 |
---|---|---|
committer | 53hornet <atc@53hor.net> | 2022-01-14 22:09:56 -0500 |
commit | afd4e07dfd023d1951899cfc5e770cf155dfd3ec (patch) | |
tree | 43313e673e05529958cb133ded2c37e6f0c0b727 | |
parent | e87208ca2d9bd3a829978bdfd230285ec2f5696f (diff) | |
download | 53hor-afd4e07dfd023d1951899cfc5e770cf155dfd3ec.tar.xz 53hor-afd4e07dfd023d1951899cfc5e770cf155dfd3ec.zip |
fix: drafts are markdown
-rwxr-xr-x | scripts/new.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/new.php b/scripts/new.php index f272a8a..16a5cb4 100755 --- a/scripts/new.php +++ b/scripts/new.php @@ -30,7 +30,7 @@ $title = "<h1>$title</h1>\n\n"; // Generate post filename/URL. $filename = strtolower(implode('-', $title_words)); $date = date('Y-m-d'); -$filename = "$date-$filename.php"; +$filename = "$date-$filename.md"; if (!$handle = fopen("./drafts/$filename", 'a')) { fwrite(STDERR, "Cannot append to file: $filename\n"); |