From afd4e07dfd023d1951899cfc5e770cf155dfd3ec Mon Sep 17 00:00:00 2001 From: 53hornet Date: Fri, 14 Jan 2022 22:09:56 -0500 Subject: fix: drafts are markdown --- scripts/new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "

$title

\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"); -- cgit v1.2.3