summaryrefslogtreecommitdiff
path: root/scripts/new.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/new.php')
-rwxr-xr-xscripts/new.php2
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");