add: default header on new note
This commit is contained in:
parent
6e85a1336b
commit
62570915eb
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue