diff --git a/index.php b/index.php index 9ca227d..4f0d823 100644 --- a/index.php +++ b/index.php @@ -78,7 +78,8 @@ if (!file_exists($dir . '/' . $param)) { - file_put_contents($dir . '/' . $param, ''); + $content = "---\r\ndate: " . substr($now, 0, 10) . "\r\ntags: \r\n---\r\n"; + file_put_contents($dir . '/' . $param, $content); } else if (!$content) {