summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2022-01-14 22:09:56 -0500
committer53hornet <atc@53hor.net>2022-01-14 22:09:56 -0500
commitafd4e07dfd023d1951899cfc5e770cf155dfd3ec (patch)
tree43313e673e05529958cb133ded2c37e6f0c0b727
parente87208ca2d9bd3a829978bdfd230285ec2f5696f (diff)
download53hor-afd4e07dfd023d1951899cfc5e770cf155dfd3ec.tar.xz
53hor-afd4e07dfd023d1951899cfc5e770cf155dfd3ec.zip
fix: drafts are markdown
-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");